diff mercurial/commands.py @ 758:c5db9581bfa6

There was an extra space after 'hg id' when there are no tags.
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 22 Jul 2005 08:58:16 +0100
parents 7000825ef3ba
children 0fb498458905
line wrap: on
line diff
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -615,7 +615,8 @@ def identify(ui, repo):
         parenttags = ['/'.join(tags)
                       for tags in map(repo.nodetags, parents) if tags]
         # tags for multiple parents separated by ' + '
-        output.append(' + '.join(parenttags))
+        if parenttags:
+            output.append(' + '.join(parenttags))
 
     ui.write("%s\n" % ' '.join(output))