# HG changeset patch # User Matt Mackall # Date 1121230542 28800 # Node ID 44b30755d07c4ece936e2ffe6fa9b51b518f3c3e # Parent d7d68d27ebe5ea5c13c912f574dac2b616d78c76 Hide file hashes in log There are six different kinds of revision numbers and hashes: changeset hash and local number manifest hash and local number file hash and local number We really ought to expose only the changeset hash and local number, so begin hiding the others from the end user manifest hash: 40d07cc930e84a9283d5e03ade23e3454401e148 diff -r d7d68d27ebe5 -r 44b30755d07c mercurial/commands.py --- a/mercurial/commands.py Tue Jul 12 00:51:49 2005 -0800 +++ b/mercurial/commands.py Tue Jul 12 20:55:42 2005 -0800 @@ -183,19 +183,15 @@ if not ui.debugflag and len(parents) == 1 and parents[0][0] == rev-1: parents = [] + ui.write("changeset: %d:%s\n" % (changerev, hg.hex(changenode))) + for tag in repo.nodetags(changenode): + ui.status("tag: %s\n" % tag) + for parent in parents: + ui.write("parent: %d:%s\n" % parent) if filelog: - ui.write("revision: %d:%s\n" % (filerev, hg.hex(filenode))) - for parent in parents: - ui.write("parent: %d:%s\n" % parent) - ui.status("changeset: %d:%s\n" % (changerev, hg.hex(changenode))) - else: - ui.write("changeset: %d:%s\n" % (changerev, hg.hex(changenode))) - for tag in repo.nodetags(changenode): - ui.status("tag: %s\n" % tag) - for parent in parents: - ui.write("parent: %d:%s\n" % parent) - ui.note("manifest: %d:%s\n" % (repo.manifest.rev(changes[0]), - hg.hex(changes[0]))) + ui.debug("file rev: %d:%s\n" % (filerev, hg.hex(filenode))) + ui.note("manifest: %d:%s\n" % (repo.manifest.rev(changes[0]), + hg.hex(changes[0]))) ui.status("user: %s\n" % changes[1]) ui.status("date: %s\n" % time.asctime( time.localtime(float(changes[2].split(' ')[0]))))