[PATCH] graft: new "--graftmessage" option, for better graft documentation
Matt Mackall
mpm at selenic.com
Fri Dec 28 17:47:49 CST 2012
On Sat, 2012-12-29 at 00:40 +0100, Yann E. MORIN wrote:
> Pierre-Yves, All,
>
> On Saturday 29 December 2012 Pierre-Yves David wrote:
> > On 28 déc. 2012, at 16:15, Martin Rieser wrote:
> >
> > > # HG changeset patch
> > > # User Martin Rieser
> > > # Date 1356625537 -3600
> > > # Branch stable
> > > # Node ID 9f82b5abaa7e56ce561e2c385c4607136a49e838
> > > # Parent 777084ac84167e3bdea45b5c00de1106cca36eef
> > > graft: new "--graftmessage" option, for better graft documentation.
> > >
> > > With this option the person who uses the graft function, can add some
> > > additional text to the commit message.
> > > With this new graft option it is not required to open an editor to
> > > change the commit message.
> >
> > What the trouble with opening an editor?
> >
> > Why would we need a new command switch.
>
> The same as we have for 'commit':
> -m --message TEXT use text as commit message
Notable, this supplements the existing commit message in a fixed format:
+ if opts.get('graftmessage'):
+ message += '\nGraft: %s' % opts.get('graftmessage')
...that's awkward for non-one-line messages.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list