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

Arne Babenhauserheide arne_bab at web.de
Tue Feb 7 14:26:53 UTC 2012


Am Montag, 6. Februar 2012, 13:41:16 schrieb Pierre-Yves David:
> On Thu, Feb 02, 2012 at 02:35:03PM +0200, Idan Kamara wrote:
> > # HG changeset patch
> > # User Idan Kamara <idankk86 at gmail.com>
> > # Date 1328185747 -7200
> > # Branch stable
> > # Node ID cc7dec00d5016f03acf789c35ce6ef50b204f0cb
> > # Parent  0620421044a2bcaafd054a6ee454614888699de8
> > commit: add --amend option to amend the parent changeset
> 
> I do not think this should be a flag to commit. "hg commit" is about adding
> new changeset to the history. Your RFC is about rewriting a changeset. I
> would use a dedicated command "hg amend" for this purpose.

Why not add this now and once obsolete is in place, amend it so that hg commit 
--amend actually calls amend behind the scenes?

Then when users activate the full obsolete extension, they get the tools to do 
even more efficiently what they had been doing before with the simple --amend.

Best wishes,
Arne
--
Ich hab' nichts zu verbergen – hab ich gedacht: 

- http://draketo.de/licht/lieder/ich-hab-nichts-zu-verbergen

-------------- 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://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20120207/353f62d4/attachment.asc>


More information about the Mercurial-devel mailing list