show_changeset: -q shows short hash
authormpm@selenic.com
Tue, 16 Aug 2005 15:50:42 -0800
changeset 921 1a51fa1b3513
parent 920 270756aa29d5
child 922 f4c7ad186983
show_changeset: -q shows short hash
mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -216,7 +216,7 @@ def show_changeset(ui, repo, rev=0, chan
         node = changenode
 
     if ui.quiet:
-        ui.write("%d:%s\n" % (rev, hg.hex(node)))
+        ui.write("%d:%s\n" % (rev, hg.short(node)))
         return
 
     changes = changelog.read(changenode)