diff mercurial/commands.py @ 2035:107dc72880f8

Make 'hg tags -q' only list tag names without revision numbers and hashes, and change bash_completion to use this.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sat, 01 Apr 2006 23:57:24 +0200
parents 5e7aff1b6ae1
children f90513a3dbcd
line wrap: on
line diff
--- a/mercurial/commands.py	Sat Apr 01 22:50:12 2006 +0200
+++ b/mercurial/commands.py	Sat Apr 01 23:57:24 2006 +0200
@@ -2691,7 +2691,10 @@
             r = "%5d:%s" % (repo.changelog.rev(n), hex(n))
         except KeyError:
             r = "    ?:?"
-        ui.write("%-30s %s\n" % (t, r))
+        if ui.quiet:
+            ui.write("%s\n" % t)
+        else:
+            ui.write("%-30s %s\n" % (t, r))
 
 def tip(ui, repo, **opts):
     """show the tip revision