Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 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 | f848d7f96195 |
children | f1069e7f5635 |
comparison
equal
deleted
inserted
replaced
7467:0d1c5e638d07 | 7509:62e5d41b0a8b |
---|---|
686 options.append('-%s' % o[0]) | 686 options.append('-%s' % o[0]) |
687 options.append('--%s' % o[1]) | 687 options.append('--%s' % o[1]) |
688 ui.write("%s\n" % "\n".join(options)) | 688 ui.write("%s\n" % "\n".join(options)) |
689 return | 689 return |
690 | 690 |
691 ui.write("%s\n" % "\n".join(util.sort(cmdutil.findpossible(cmd, table)))) | 691 cmdlist = cmdutil.findpossible(cmd, table) |
692 if ui.verbose: | |
693 cmdlist = [' '.join(c[0]) for c in cmdlist.values()] | |
694 ui.write("%s\n" % "\n".join(util.sort(cmdlist))) | |
692 | 695 |
693 def debugfsinfo(ui, path = "."): | 696 def debugfsinfo(ui, path = "."): |
694 file('.debugfsinfo', 'w').write('') | 697 file('.debugfsinfo', 'w').write('') |
695 ui.write('exec: %s\n' % (util.checkexec(path) and 'yes' or 'no')) | 698 ui.write('exec: %s\n' % (util.checkexec(path) and 'yes' or 'no')) |
696 ui.write('symlink: %s\n' % (util.checklink(path) and 'yes' or 'no')) | 699 ui.write('symlink: %s\n' % (util.checklink(path) and 'yes' or 'no')) |