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

Mathias De Maré mathias.demare at gmail.com
Fri Nov 27 19:24:47 UTC 2015


# 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::
+
+          hg log -r . --template "{node}\\n"
+
       - list available log templates::
 
           hg log -T list


More information about the Mercurial-devel mailing list