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
--- 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]))))