mercurial/commands.py
changeset 477 520540fd6b64
parent 470 0ab093b473c5
child 479 7293cb91bf2a
--- a/mercurial/commands.py	Sun Jun 26 12:04:59 2005 +0100
+++ b/mercurial/commands.py	Sun Jun 26 13:25:07 2005 +0100
@@ -662,15 +662,15 @@
 
 def tags(ui, repo):
     """list repository tags"""
-    
+
     l = repo.tagslist()
     l.reverse()
-    for t,n in l:
+    for t, n in l:
         try:
-            r = repo.changelog.rev(n)
+            r = "%5d:%s" % (repo.changelog.rev(n), hg.hex(n))
         except KeyError:
-            r = "?"
-        print "%-30s %5d:%s" % (t, repo.changelog.rev(n), hg.hex(n))
+            r = "    ?:?"
+        ui.write("%-30s %s\n" % (t, r))
 
 def tip(ui, repo):
     """show the tip revision"""