changeset 10833:d7b601f1e02c

commands: retrieve tags from context object
author Martin Geisler <mg@lazybytes.net>
date Mon, 05 Apr 2010 11:52:40 +0200
parents 420bc8124904
children 4ab459a6c25c
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Sun Apr 04 21:35:00 2010 -0400
+++ b/mercurial/commands.py	Mon Apr 05 11:52:40 2010 +0200
@@ -3078,7 +3078,6 @@
     tags = repo.tags()
 
     for p in parents:
-        t = ' '.join([t for t in tags if tags[t] == p.node()])
         message = ''
         if p.rev() == -1:
             if not len(repo):
@@ -3089,7 +3088,7 @@
         # shows a working directory parent *changeset*:
         ui.write(_('parent: %d:%s ') % (p.rev(), str(p)),
                  label='log.changeset')
-        ui.write(t, label='log.tag')
+        ui.write(' '.join(p.tags()), label='log.tag')
         if message:
             ui.write(message)
         ui.write('\n')