Michel <[EMAIL PROTECTED]> writes:

> Thanks! That worked. But it is not a nice patch. It contains all the
> intermediate stuff. Anyway here it is

There are ways to do this, but they're not clean and they're really
not consistent with the way mercurial was intended to be used.

Suppose head is a clone.  Clone head to changed.  Mangle changed,
possibly generating lots of history.  Now clone head to synthesized,
and manually patch synthesized to agree with changed.  Then generate a
single commit from synthesized, and apply it to head.  That shrinks
the history.

There is also an hg extension to do this slightly more cleanly, called
transplant.  And hgq can do this too, in a different way.

I wanted to do this a few times, so I talked to the #hg folks.  The
upshot?  Don't do it -- it's almost always the wrong way to get hg to
do what you want.

Cheers,
Nick

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to