# HG changeset patch # User Thomas Arendsen Hein # Date 1182890337 -7200 # Node ID eadfaa9ec4872d3ccff2e437ba6893ea2d077bd8 # Parent 9881abfc0e442440dd39ca27e1442869366f96e0 Updated command tables in commands.py and hgext extensions. - Marked for translation where extensions already had _() - Corrected indentation - fixed a few synopsises diff --git a/hgext/extdiff.py b/hgext/extdiff.py --- a/hgext/extdiff.py +++ b/hgext/extdiff.py @@ -189,4 +189,4 @@ def uisetup(ui): return mydiff cmdtable[cmd] = (save(cmd, path, diffopts), cmdtable['extdiff'][1][1:], - _('hg %s [OPT]... [FILE]...') % cmd) + _('hg %s [OPTION]... [FILE]...') % cmd) diff --git a/hgext/fetch.py b/hgext/fetch.py --- a/hgext/fetch.py +++ b/hgext/fetch.py @@ -85,14 +85,14 @@ def fetch(ui, repo, source='default', ** cmdtable = { 'fetch': - (fetch, - [('e', 'ssh', '', _('specify ssh command to use')), - ('m', 'message', '', _('use as commit message')), - ('l', 'logfile', '', _('read the commit message from ')), - ('d', 'date', '', _('record datecode as commit date')), - ('u', 'user', '', _('record user as commiter')), - ('r', 'rev', [], _('a specific revision you would like to pull')), - ('f', 'force-editor', None, _('edit commit message')), - ('', 'remotecmd', '', _('hg command to run on the remote side'))], - 'hg fetch [SOURCE]'), - } + (fetch, + [('e', 'ssh', '', _('specify ssh command to use')), + ('m', 'message', '', _('use as commit message')), + ('l', 'logfile', '', _('read the commit message from ')), + ('d', 'date', '', _('record datecode as commit date')), + ('u', 'user', '', _('record user as commiter')), + ('r', 'rev', [], _('a specific revision you would like to pull')), + ('f', 'force-editor', None, _('edit commit message')), + ('', 'remotecmd', '', _('hg command to run on the remote side'))], + _('hg fetch [SOURCE]')), +} diff --git a/hgext/gpg.py b/hgext/gpg.py --- a/hgext/gpg.py +++ b/hgext/gpg.py @@ -266,14 +266,14 @@ def node2txt(repo, node, ver): cmdtable = { "sign": (sign, - [('l', 'local', None, _("make the signature local")), - ('f', 'force', None, _("sign even if the sigfile is modified")), - ('', 'no-commit', None, _("do not commit the sigfile after signing")), - ('m', 'message', "", _("commit message")), - ('d', 'date', "", _("date code")), - ('u', 'user', "", _("user")), - ('k', 'key', "", _("the key id to sign with"))], - _("hg sign [OPTION]... [REVISION]...")), + [('l', 'local', None, _('make the signature local')), + ('f', 'force', None, _('sign even if the sigfile is modified')), + ('', 'no-commit', None, _('do not commit the sigfile after signing')), + ('m', 'message', '', _('commit message')), + ('d', 'date', '', _('date code')), + ('u', 'user', '', _('user')), + ('k', 'key', '', _('the key id to sign with'))], + _('hg sign [OPTION]... [REVISION]...')), "sigcheck": (check, [], _('hg sigcheck REVISION')), "sigs": (sigs, [], _('hg sigs')), } diff --git a/hgext/graphlog.py b/hgext/graphlog.py --- a/hgext/graphlog.py +++ b/hgext/graphlog.py @@ -255,11 +255,11 @@ def graphlog(ui, repo, *args, **opts): cmdtable = { "glog": - (graphlog, - [("l", "limit", "", _("limit number of changes displayed")), - ("p", "patch", False, _("show patch")), - ("r", "rev", [], _("show the specified revision or range")), - ("", "style", "", _("display using template map file")), - ("", "template", "", _("display with template"))], - "hg glog [OPTIONS]"), + (graphlog, + [('l', 'limit', '', _('limit number of changes displayed')), + ('p', 'patch', False, _('show patch')), + ('r', 'rev', [], _('show the specified revision or range')), + ('', 'style', '', _('display using template map file')), + ('', 'template', '', _('display with template'))], + _('hg glog [OPTION]...')), } diff --git a/hgext/hgk.py b/hgext/hgk.py --- a/hgext/hgk.py +++ b/hgext/hgk.py @@ -275,25 +275,34 @@ def view(ui, repo, *etc, **opts): util.system(cmd) cmdtable = { - "^view": (view, - [('l', 'limit', '', 'limit number of changes displayed')], - 'hg view [-l LIMIT] [REVRANGE]'), - "debug-diff-tree": (difftree, [('p', 'patch', None, 'generate patch'), - ('r', 'recursive', None, 'recursive'), - ('P', 'pretty', None, 'pretty'), - ('s', 'stdin', None, 'stdin'), - ('C', 'copy', None, 'detect copies'), - ('S', 'search', "", 'search')], - "hg git-diff-tree [options] node1 node2 [files...]"), - "debug-cat-file": (catfile, [('s', 'stdin', None, 'stdin')], - "hg debug-cat-file [options] type file"), - "debug-merge-base": (base, [], "hg debug-merge-base node node"), - 'debug-rev-parse': (revparse, - [('', 'default', '', 'ignored')], - "hg debug-rev-parse rev"), - "debug-rev-list": (revlist, [('H', 'header', None, 'header'), - ('t', 'topo-order', None, 'topo-order'), - ('p', 'parents', None, 'parents'), - ('n', 'max-count', 0, 'max-count')], - "hg debug-rev-list [options] revs"), + "^view": + (view, + [('l', 'limit', '', 'limit number of changes displayed')], + 'hg view [-l LIMIT] [REVRANGE]'), + "debug-diff-tree": + (difftree, + [('p', 'patch', None, 'generate patch'), + ('r', 'recursive', None, 'recursive'), + ('P', 'pretty', None, 'pretty'), + ('s', 'stdin', None, 'stdin'), + ('C', 'copy', None, 'detect copies'), + ('S', 'search', "", 'search')], + 'hg git-diff-tree [OPTION]... NODE1 NODE2 [FILE]...'), + "debug-cat-file": + (catfile, + [('s', 'stdin', None, 'stdin')], + 'hg debug-cat-file [OPTION]... TYPE FILE'), + "debug-merge-base": + (base, [], 'hg debug-merge-base node node'), + "debug-rev-parse": + (revparse, + [('', 'default', '', 'ignored')], + 'hg debug-rev-parse REV'), + "debug-rev-list": + (revlist, + [('H', 'header', None, 'header'), + ('t', 'topo-order', None, 'topo-order'), + ('p', 'parents', None, 'parents'), + ('n', 'max-count', 0, 'max-count')], + 'hg debug-rev-list [options] revs'), } diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -2080,44 +2080,49 @@ def reposetup(ui, repo): seriesopts = [('s', 'summary', None, _('print first line of patch header'))] cmdtable = { - "qapplied": (applied, [] + seriesopts, 'hg qapplied [-s] [PATCH]'), - "qclone": (clone, - [('', 'pull', None, _('use pull protocol to copy metadata')), - ('U', 'noupdate', None, _('do not update the new working directories')), - ('', 'uncompressed', None, - _('use uncompressed transfer (fast over LAN)')), - ('e', 'ssh', '', _('specify ssh command to use')), - ('p', 'patches', '', _('location of source patch repo')), - ('', 'remotecmd', '', - _('specify hg command to run on the remote side'))], - 'hg qclone [OPTION]... SOURCE [DEST]'), + "qapplied": (applied, [] + seriesopts, _('hg qapplied [-s] [PATCH]')), + "qclone": + (clone, + [('', 'pull', None, _('use pull protocol to copy metadata')), + ('U', 'noupdate', None, _('do not update the new working directories')), + ('', 'uncompressed', None, + _('use uncompressed transfer (fast over LAN)')), + ('e', 'ssh', '', _('specify ssh command to use')), + ('p', 'patches', '', _('location of source patch repo')), + ('', 'remotecmd', '', + _('specify hg command to run on the remote side'))], + _('hg qclone [OPTION]... SOURCE [DEST]')), "qcommit|qci": (commit, commands.table["^commit|ci"][1], - 'hg qcommit [OPTION]... [FILE]...'), - "^qdiff": (diff, - [('g', 'git', None, _('use git extended diff format')), - ('I', 'include', [], _('include names matching the given patterns')), - ('X', 'exclude', [], _('exclude names matching the given patterns'))], - 'hg qdiff [-I] [-X] [FILE]...'), + _('hg qcommit [OPTION]... [FILE]...')), + "^qdiff": + (diff, + [('g', 'git', None, _('use git extended diff format')), + ('I', 'include', [], _('include names matching the given patterns')), + ('X', 'exclude', [], _('exclude names matching the given patterns'))], + _('hg qdiff [-I] [-X] [-g] [FILE]...')), "qdelete|qremove|qrm": (delete, [('k', 'keep', None, _('keep patch file')), ('r', 'rev', [], _('stop managing a revision'))], - 'hg qdelete [-k] [-r REV]... PATCH...'), + _('hg qdelete [-k] [-r REV]... PATCH...')), 'qfold': (fold, [('e', 'edit', None, _('edit patch header')), - ('k', 'keep', None, _('keep folded patch files')) - ] + commands.commitopts, - 'hg qfold [-e] [-m ] [-l