Amending a changeset
Christian Boos
cboos at neuf.fr
Tue Apr 22 04:10:27 CDT 2008
leslie.polzer at gmx.net wrote:
> Hello,
>
> in a recent changeset some changes that semantically belong to it are missing.
> In Darcs I would now use AMEND-RECORD to add the remaining changes (they
> are in the working copy right now and have not been committed yet).
>
> Is there a way to do this in hg?
`hg rollback', then: `hg ci' again and this will now contain the new
changes as well.
The only feature I miss in the above sequence is that the original
commit message is lost, so you actually have to remember to do something
like:
hg tip --template '{desc}' > msg
before doing the rollback.
An `hg amend' extension automating the above would be handy (or maybe
this could be grafted in the 'record' extension, as an --amend option?)
-- Christian
More information about the Mercurial
mailing list