Fixing a divergent tip

Pierre-Yves David pierre-yves.david at ens-lyon.org
Sat Jan 17 00:47:03 UTC 2015



On 01/16/2015 04:06 PM, Matt Harbison wrote:
> A couple months ago, I asked about how to fix a particular case of
> divergence, and the answer was to rebase.  Yesterday at work, I pruned a
> commit, but accidentally specified the wrong successor.  I may have
> followed that with an evolve command, but I got to a point where the
> only troubled commit was the tip of the branch, which was marked divergent.
>
> Is there a way to fix that?  I suppose I could have rebased tip back a
> few ancestors, and then forward again, but I would assume there's an
> easier way.  What I ended up doing, because I had just enabled evolve
> (and wanted to go home), was to rename the obsstore file and manually
> record the few prune ops that were stored in it.

quick answer before wrapping my head around the situation: have a look 
at `hg touch --duplicate`

-- 
Pierre-Yves David



More information about the Evolve-testers mailing list