Amending a changeset

Paul Moore p.f.moore at gmail.com
Tue Apr 22 06:03:33 CDT 2008


On 22/04/2008, Christian Boos <cboos at neuf.fr> wrote:
> leslie.polzer at gmx.net wrote:
> >
> > 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.

Indeed, that works if the changeset is the latest one. I read "recent"
as implying that there had been other commits since the problem one -
apologies for over-complicating the issue if that was wrong :-)

> An `hg amend' extension automating the above would be handy (or maybe
> this could be grafted in the 'record' extension, as an --amend option?)

Sounds reasonable.

Paul.


More information about the Mercurial mailing list