changeset 3455:10b6fc51f672

Don't show empty list of files in hg log -v.
author Thomas Arendsen Hein <thomas@intevation.de>
date Wed, 18 Oct 2006 12:26:12 +0200
parents 0600d326d96a
children 451ec905625b
files mercurial/commands.py tests/test-rawcommit1.out
diffstat 2 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -361,7 +361,7 @@ class changeset_printer(object):
                                   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
+++ b/tests/test-rawcommit1.out
@@ -58,7 +58,6 @@ parent:      4:42556b925639
 parent:      5:f56d4c64ab98
 user:        test
 date:        Mon Jan 12 13:46:40 1970 +0000
-files:       
 description:
 6
 
@@ -70,7 +69,6 @@ changeset:   7:a5a6e1f312b9
 tag:         tip
 user:        test
 date:        Mon Jan 12 13:46:40 1970 +0000
-files:       
 description:
 7