howto suspend work

Neal Becker ndbecker2 at gmail.com
Wed Jun 3 13:03:52 CDT 2009


Neal Becker 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.
> 
> Suggestions?

OK, so here's what I tried.

hg ci -m 'experimental deadend'

hg update -r revA.

hack hack

hg ci -m 'newer stuff based on revA'
added 1 head

OK, great.  Now I have 2 heads.  Now what?  I sure don't want to do merge, 
that would pull in the changes from 'experimental deadend'.






More information about the Mercurial mailing list