[PATCH] amend: preserve phase of amended revision (issue3602)

Idan Kamara idankk86 at gmail.com
Fri Aug 31 14:48:31 CDT 2012


On Fri, Aug 31, 2012 at 10:30 PM, Pierre-Yves David <
pierre-yves.david at ens-lyon.org> wrote:
>
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david at logilab.fr>
> # Date 1346338028 -7200
> # Branch stable
> # Node ID ce6eb58850a45f6a20cd3cfa6320369cc0f66273
> # Parent  b0aad9fb87f947e821f0381d461f1794e73833a7
> amend: preserve phase of amended revision (issue3602)
>
> New commit from the amend process were created without any phase
> contraint. If
> the amended changeset had a different phase from it's parent, the phases
> data
> were lost.
>
> The changeset ensure the new commit are created in the same phase than the
> original changeset.

It might nice to introduce a 'copycommitmetadata' utility function that
does this and everything else (user, message, date..) in one place.

A quick test reveals that graft doesn't copy phase info too.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20120831/4686cd5c/attachment.html>


More information about the Mercurial-devel mailing list