howto suspend work
Arne Babenhauserheide
arne_bab at web.de
Wed Jun 3 14:30:16 CDT 2009
On Wednesday, 3. June 2009 15:38:18 Neal Becker wrote:
> 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.
If you want to keep it in history as failed attempt, just commit and then
backout.
$ hg commit -m "Attempt to solve X"
$ hg backout tip
If you want to only keep a backup which doesn't appear in history, just
commit, clone the repo away and then rollback and "update -C".
$ hg commit -m "Failed attempt to solve X"
$ cd ..
$ hg clone project failed-attempt-to-solve-x
$ cd project
$ hg rollback # undo the commit
$ hg update -C # update all files to the last committed version.
Backout has the advantage, that you can also backout of many changes, while
rollback only undoes the last one ("clone -r GOOD_REV" can fill the role,
though).
Best wishes,
Arne
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
- singing a part of the history of free software -
http://infinite-hands.draketo.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://selenic.com/pipermail/mercurial/attachments/20090603/9133bca6/attachment.pgp
More information about the Mercurial
mailing list