##// END OF EJS Templates
debugcommands: move 'debugcommands' in the new module...
Gregory Szorc -
r30504:c3bdc271 default
parent child Browse files
Show More
@@ -1867,14 +1867,6 b' def copy(ui, repo, *pats, **opts):'
1867 with repo.wlock(False):
1867 with repo.wlock(False):
1868 return cmdutil.copy(ui, repo, pats, opts)
1868 return cmdutil.copy(ui, repo, pats, opts)
1869
1869
1870 @command('debugcommands', [], _('[COMMAND]'), norepo=True)
1871 def debugcommands(ui, cmd='', *args):
1872 """list all available commands and options"""
1873 for cmd, vals in sorted(table.iteritems()):
1874 cmd = cmd.split('|')[0].strip('^')
1875 opts = ', '.join([i[1] for i in vals[1]])
1876 ui.write('%s: %s\n' % (cmd, opts))
1877
1878 @command('debugcomplete',
1870 @command('debugcomplete',
1879 [('o', 'options', None, _('show the command options'))],
1871 [('o', 'options', None, _('show the command options'))],
1880 _('[-o] CMD'),
1872 _('[-o] CMD'),
@@ -321,3 +321,11 b' def debugcheckstate(ui, repo):'
321 if errors:
321 if errors:
322 error = _(".hg/dirstate inconsistent with current parent's manifest")
322 error = _(".hg/dirstate inconsistent with current parent's manifest")
323 raise error.Abort(error)
323 raise error.Abort(error)
324
325 @command('debugcommands', [], _('[COMMAND]'), norepo=True)
326 def debugcommands(ui, cmd='', *args):
327 """list all available commands and options"""
328 for cmd, vals in sorted(commands.table.iteritems()):
329 cmd = cmd.split('|')[0].strip('^')
330 opts = ', '.join([i[1] for i in vals[1]])
331 ui.write('%s: %s\n' % (cmd, opts))
General Comments 0
You need to be logged in to leave comments. Login now