Don't show empty list of files in hg log -v.
authorThomas Arendsen Hein <thomas@intevation.de>
Wed, 18 Oct 2006 12:26:12 +0200
changeset 3460 10b6fc51f672
parent 3459 0600d326d96a
child 3461 451ec905625b
Don't show empty list of files in hg log -v.
mercurial/commands.py
tests/test-rawcommit1.out
--- a/mercurial/commands.py	Wed Oct 18 12:17:02 2006 +0200
+++ b/mercurial/commands.py	Wed Oct 18 12:26:12 2006 +0200
@@ -361,7 +361,7 @@
                                   files):
                 if value:
                     self.ui.note("%-12s %s\n" % (key, " ".join(value)))
-        else:
+        elif changes[3]:
             self.ui.note(_("files:       %s\n") % " ".join(changes[3]))
         if copies:
             copies = ['%s (%s)' % c for c in copies]
--- a/tests/test-rawcommit1.out	Wed Oct 18 12:17:02 2006 +0200
+++ b/tests/test-rawcommit1.out	Wed Oct 18 12:26:12 2006 +0200
@@ -58,7 +58,6 @@
 parent:      5:f56d4c64ab98
 user:        test
 date:        Mon Jan 12 13:46:40 1970 +0000
-files:       
 description:
 6
 
@@ -70,7 +69,6 @@
 tag:         tip
 user:        test
 date:        Mon Jan 12 13:46:40 1970 +0000
-files:       
 description:
 7