# HG changeset patch # User mpm@selenic.com # Date 1124236242 28800 # Node ID 1a51fa1b3513bcddd0f7274b6683005840227c44 # Parent 270756aa29d5698e5f5877921c361ca73260fe36 show_changeset: -q shows short hash diff --git a/mercurial/commands.py b/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)