[PATCH 1 of 2] commands: add 'hg log' example for full hashes

Yuya Nishihara yuya at tcha.org
Sat Nov 28 21:20:15 CST 2015


On Sat, 28 Nov 2015 19:14:52 +0100, Mathias De Maré wrote:
> On Sat, Nov 28, 2015 at 3:44 PM, Yuya Nishihara <yuya at tcha.org> wrote:
> > On Fri, 27 Nov 2015 13:24:47 -0600, Mathias De Maré wrote:
> > > # HG changeset patch
> > > # User Mathias De Maré <mathias.demare at gmail.com>
> > > # Date 1448652182 -3600
> > > #      Fri Nov 27 20:23:02 2015 +0100
> > > # Node ID c3e3e536ad7e74d96322c3ac29dd883215abc04a
> > > # Parent  61fbf5dc12b23e7a2a30cf04ebd9f096c42a1f61
> > > commands: add 'hg log' example for full hashes
> > >
> > > diff --git a/mercurial/commands.py b/mercurial/commands.py
> > > --- a/mercurial/commands.py
> > > +++ b/mercurial/commands.py
> > > @@ -4762,6 +4762,10 @@
> > >
> > >            hg log -k bug --template "{rev}\\n"
> > >
> > > +      - the full hash identifier of the current changeset::
> >
> > Not sure if "current changeset" is a common word. How about
> > s/current changeset/working directory parent/ ?
> >
> That does sound like a better description, thanks. Should I resend or can
> this be taken inflight?

Pushed modified version to the clowncopter, thanks. Maybe we can extend
this example to show more complicated way to generate a version string
without using "hg identify".


More information about the Mercurial-devel mailing list