howto suspend work

Isaac Jurado diptongo at gmail.com
Wed Jun 3 09:40:32 CDT 2009


> I have reached a milestone, let's call it revA.  I started working on some 
> substantial change, but then realized this is not the right approach.  I 
> could just hg revert (I haven't yet committed these new changes), but I'd 
> like to keep it just in case.  
>
> I could hg ci the new changes, and then hg update -r revA.  That's fine, 
> except the head would still be the aborted experiment.
>
> Suggestions?

Just for the record, you could also do the obvious without enabling any
extension. Instead of commiting the changes:

    hg diff >test_backup.patch
    hg revert -a --no-backup

Then you have a backup.  This is what I do for ad hoc situations like
the one you described.

Cheers.

-- 
Isaac Jurado
http://www.krenel.net

"The noblest pleasure is the joy of understanding."
                                  Leonardo da Vinci


More information about the Mercurial mailing list