howto suspend work
Greg Ward
greg-hg at gerg.ca
Wed Jun 3 08:48:33 CDT 2009
On Wed, Jun 3, 2009 at 9:38 AM, Neal Becker <ndbecker2 at gmail.com> wrote:
> 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.
I have two letters for you: MQ. It's a great way to work on
experimental patches. See
http://hgbook.red-bean.com/read/managing-change-with-mercurial-queues.html
. When you're done, you can choose to throw away your aborted patch
completely, or keep it around on its own head (which you'll probably
want to close), or whatever.
(Alternatively, the attic extension might be more to your liking.
MQ's great advantage here is that it's bundled with Mercurial and
documented in the book. See
http://www.selenic.com/mercurial/wiki/AtticExtension .)
Greg
More information about the Mercurial
mailing list