changeset 7509:62e5d41b0a8b

Make debugcomplete -v print aliases as well as commands
author Brendan Cully <brendan@kublai.com>
date Thu, 04 Dec 2008 11:21:15 -0800
parents 0d1c5e638d07
children 21009e85ee78
files mercurial/commands.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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('')