[PATCH RFC] commit: add --amend option to amend the parent changeset

Arne Babenhauserheide arne_bab at web.de
Tue Feb 21 07:35:50 CST 2012


Am Dienstag, 21. Februar 2012, 12:27:13 schrieb Idan Kamara:
> On Tue, Feb 21, 2012 at 10:22 AM, Arne Babenhauserheide 
<arne_bab at web.de>wrote:
> > I might want it to be available to me, though, because I might make an
> > error
> > on the new commit which I might only catch by comparing it to the old one.
> 
> If Mercurial could mark changesets as eligible for garbage collection it
> would probably be a good fit to mark the amended commit as such.

That’s actually what Pierre is working on with obsolete and evolve. But with 
additional tricks, so you can amend one changesets and have all its decendants 
and future decendants fix up themselves to be based on the new changeset as 
soon as you call hg evolve.

> You shouldn't be able to amend public changesets. If you really want to
> you could 'hg phase -f -d' it and then --amend will agree to do it.

And then I will possibly mangle up the history of others. That’s why this is 
an advanced use-case where I definitely need a stronger tool.

Best wishes,
Arne
--
singing a part of the history of free software: 

- http://infinite-hands.draketo.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 316 bytes
Desc: This is a digitally signed message part.
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20120221/ad4b7e9a/attachment.pgp>


More information about the Mercurial-devel mailing list