Submitter | Mathias De Maré |
---|---|
Date | Nov. 27, 2015, 7:24 p.m. |
Message ID | <c3e3e536ad7e74d96322.1448652287@waste.org> |
Download | mbox | patch |
Permalink | /patch/11666/ |
State | Accepted |
Delegated to: | Yuya Nishihara |
Headers | show |
Comments
On Fri, 27 Nov 2015 13:24:47 -0600, Mathias De Maré wrote: > # HG changeset patch > # User Mathias De Maré <mathias.demare@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/ ?
On Sat, Nov 28, 2015 at 3:44 PM, Yuya Nishihara <yuya@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@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?
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@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@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".
Patch
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:: + + hg log -r . --template "{node}\\n" + - list available log templates:: hg log -T list