Make debugcomplete -v print aliases as well as commands
authorBrendan Cully <brendan@kublai.com>
Thu, 04 Dec 2008 11:21:15 -0800
changeset 7509 62e5d41b0a8b
parent 7467 0d1c5e638d07
child 7510 21009e85ee78
Make debugcomplete -v print aliases as well as commands
mercurial/commands.py
--- a/mercurial/commands.py	Wed Dec 03 22:03:05 2008 -0800
+++ b/mercurial/commands.py	Thu Dec 04 11:21:15 2008 -0800
@@ -688,7 +688,10 @@
         ui.write("%s\n" % "\n".join(options))
         return
 
-    ui.write("%s\n" % "\n".join(util.sort(cmdutil.findpossible(cmd, table))))
+    cmdlist = cmdutil.findpossible(cmd, table)
+    if ui.verbose:
+        cmdlist = [' '.join(c[0]) for c in cmdlist.values()]
+    ui.write("%s\n" % "\n".join(util.sort(cmdlist)))
 
 def debugfsinfo(ui, path = "."):
     file('.debugfsinfo', 'w').write('')