Mercurial > hg
changeset 29974:7109d5ddeb0c
help: use single quotes in use warning
author | timeless <timeless@mozdev.org> |
---|---|
date | Tue, 20 Sep 2016 23:47:46 +0000 |
parents | 4ddb05751b12 |
children | c15f06109b7a |
files | mercurial/help.py tests/test-alias.t tests/test-commandserver.t tests/test-contrib-perf.t tests/test-dispatch.t tests/test-extdiff.t tests/test-extension.t tests/test-globalopts.t tests/test-help.t tests/test-mq.t tests/test-qrecord.t tests/test-record.t tests/test-shelve.t tests/test-strict.t tests/test-strip.t |
diffstat | 15 files changed, 73 insertions(+), 73 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/help.py Tue Sep 20 23:47:30 2016 +0000 +++ b/mercurial/help.py Tue Sep 20 23:47:46 2016 +0000 @@ -358,8 +358,8 @@ mod = extensions.find(name) doc = gettext(mod.__doc__) or '' if '\n' in doc.strip(): - msg = _('(use "hg help -e %s" to show help for ' - 'the %s extension)') % (name, name) + msg = _("(use 'hg help -e %s' to show help for " + "the %s extension)") % (name, name) rst.append('\n%s\n' % msg) except KeyError: pass @@ -374,7 +374,7 @@ if not ui.verbose: if not full: - rst.append(_('\n(use "hg %s -h" to show more help)\n') + rst.append(_("\n(use 'hg %s -h' to show more help)\n") % name) elif not ui.quiet: rst.append(_('\n(some details hidden, use --verbose ' @@ -450,21 +450,21 @@ rst.append('\n%s\n' % optrst(_("global options"), commands.globalopts, ui.verbose)) if name == 'shortlist': - rst.append(_('\n(use "hg help" for the full list ' - 'of commands)\n')) + rst.append(_("\n(use 'hg help' for the full list " + "of commands)\n")) else: if name == 'shortlist': - rst.append(_('\n(use "hg help" for the full list of commands ' - 'or "hg -v" for details)\n')) + rst.append(_("\n(use 'hg help' for the full list of commands " + "or 'hg -v' for details)\n")) elif name and not full: - rst.append(_('\n(use "hg help %s" to show the full help ' - 'text)\n') % name) + rst.append(_("\n(use 'hg help %s' to show the full help " + "text)\n") % name) elif name and cmds and name in cmds.keys(): - rst.append(_('\n(use "hg help -v -e %s" to show built-in ' - 'aliases and global options)\n') % name) + rst.append(_("\n(use 'hg help -v -e %s' to show built-in " + "aliases and global options)\n") % name) else: - rst.append(_('\n(use "hg help -v%s" to show built-in aliases ' - 'and global options)\n') + rst.append(_("\n(use 'hg help -v%s' to show built-in aliases " + "and global options)\n") % (name and " " + name or "")) return rst @@ -498,8 +498,8 @@ try: cmdutil.findcmd(name, commands.table) - rst.append(_('\nuse "hg help -c %s" to see help for ' - 'the %s command\n') % (name, name)) + rst.append(_("\nuse 'hg help -c %s' to see help for " + "the %s command\n") % (name, name)) except error.UnknownCommand: pass return rst @@ -536,8 +536,8 @@ modcmds = set([c.partition('|')[0] for c in ct]) rst.extend(helplist(modcmds.__contains__)) else: - rst.append(_('(use "hg help extensions" for information on enabling' - ' extensions)\n')) + rst.append(_("(use 'hg help extensions' for information on enabling" + " extensions)\n")) return rst def helpextcmd(name, subtopic=None): @@ -549,8 +549,8 @@ "extension:") % cmd, {ext: doc}, indent=4, showdeprecated=True) rst.append('\n') - rst.append(_('(use "hg help extensions" for information on enabling ' - 'extensions)\n')) + rst.append(_("(use 'hg help extensions' for information on enabling " + "extensions)\n")) return rst @@ -575,7 +575,7 @@ rst.append('\n') if not rst: msg = _('no matches') - hint = _('try "hg help" for a list of topics') + hint = _("try 'hg help' for a list of topics") raise error.Abort(msg, hint=hint) elif name and name != 'shortlist': queries = [] @@ -598,7 +598,7 @@ raise error.UnknownCommand(name) else: msg = _('no such help topic: %s') % name - hint = _('try "hg help --keyword %s"') % name + hint = _("try 'hg help --keyword %s'") % name raise error.Abort(msg, hint=hint) else: # program name
--- a/tests/test-alias.t Tue Sep 20 23:47:30 2016 +0000 +++ b/tests/test-alias.t Tue Sep 20 23:47:46 2016 +0000 @@ -99,7 +99,7 @@ patchbomb command to send changesets as (a series of) patch emails - (use "hg help extensions" for information on enabling extensions) + (use 'hg help extensions' for information on enabling extensions) no definition @@ -441,7 +441,7 @@ alias for: hg root - (use "hg rt -h" to show more help) + (use 'hg rt -h' to show more help) [255] invalid global arguments for normal commands, aliases, and shell aliases @@ -470,7 +470,7 @@ summary summarize working directory state update update working directory (or switch revisions) - (use "hg help" for the full list of commands or "hg -v" for details) + (use 'hg help' for the full list of commands or 'hg -v' for details) [255] $ hg --invalid mylog hg: option --invalid not recognized @@ -496,7 +496,7 @@ summary summarize working directory state update update working directory (or switch revisions) - (use "hg help" for the full list of commands or "hg -v" for details) + (use 'hg help' for the full list of commands or 'hg -v' for details) [255] $ hg --invalid blank hg: option --invalid not recognized @@ -522,7 +522,7 @@ summary summarize working directory state update update working directory (or switch revisions) - (use "hg help" for the full list of commands or "hg -v" for details) + (use 'hg help' for the full list of commands or 'hg -v' for details) [255] environment variable changes in alias commands
--- a/tests/test-commandserver.t Tue Sep 20 23:47:30 2016 +0000 +++ b/tests/test-commandserver.t Tue Sep 20 23:47:46 2016 +0000 @@ -78,7 +78,7 @@ summary summarize working directory state update update working directory (or switch revisions) - (use "hg help" for the full list of commands or "hg -v" for details) + (use 'hg help' for the full list of commands or 'hg -v' for details) *** runcommand id --quiet 000000000000 *** runcommand id
--- a/tests/test-contrib-perf.t Tue Sep 20 23:47:30 2016 +0000 +++ b/tests/test-contrib-perf.t Tue Sep 20 23:47:46 2016 +0000 @@ -105,7 +105,7 @@ benchmark the computation of various volatile set perfwalk (no help text available) - (use "hg help -v perfstatusext" to show built-in aliases and global options) + (use 'hg help -v perfstatusext' to show built-in aliases and global options) $ hg perfaddremove $ hg perfancestors $ hg perfancestorset 2
--- a/tests/test-dispatch.t Tue Sep 20 23:47:30 2016 +0000 +++ b/tests/test-dispatch.t Tue Sep 20 23:47:46 2016 +0000 @@ -27,7 +27,7 @@ -I --include PATTERN [+] include names matching the given patterns -X --exclude PATTERN [+] exclude names matching the given patterns - (use "hg cat -h" to show more help) + (use 'hg cat -h' to show more help) [255] [defaults]
--- a/tests/test-extdiff.t Tue Sep 20 23:47:30 2016 +0000 +++ b/tests/test-extdiff.t Tue Sep 20 23:47:46 2016 +0000 @@ -399,14 +399,14 @@ $ HGPLAIN=1 hg --config hgext.extdiff= --config extdiff.cmd.td=hi help -k xyzzy abort: no matches - (try "hg help" for a list of topics) + (try 'hg help' for a list of topics) [255] $ HGPLAIN=1 hg --config hgext.extdiff= --config extdiff.cmd.td=hi help td > /dev/null $ LC_MESSAGES=ja_JP.UTF-8 hg --config hgext.extdiff= --config extdiff.cmd.td=$U help -k xyzzy abort: no matches - (try "hg help" for a list of topics) + (try 'hg help' for a list of topics) [255] $ LC_MESSAGES=ja_JP.UTF-8 hg --config hgext.extdiff= --config extdiff.cmd.td=$U help td \
--- a/tests/test-extension.t Tue Sep 20 23:47:30 2016 +0000 +++ b/tests/test-extension.t Tue Sep 20 23:47:46 2016 +0000 @@ -592,7 +592,7 @@ graphlog command to view revision graphs from a shell (DEPRECATED) - (use "hg help extensions" for information on enabling extensions) + (use 'hg help extensions' for information on enabling extensions) Extension module help vs command help: @@ -616,7 +616,7 @@ compared to the working directory, and, when no revisions are specified, the working directory files are compared to its parent. - (use "hg help -e extdiff" to show help for the extdiff extension) + (use 'hg help -e extdiff' to show help for the extdiff extension) options ([+] can be repeated): @@ -696,7 +696,7 @@ extdiff use external program to diff repository (or selected files) - (use "hg help -v -e extdiff" to show built-in aliases and global options) + (use 'hg help -v -e extdiff' to show built-in aliases and global options) @@ -748,7 +748,7 @@ A range acts as a closed interval. This means that a range of 3:5 gives 3, 4 and 5. Similarly, a range of 9:6 gives 9, 8, 7, and 6. - use "hg help -c multirevs" to see help for the multirevs command + use 'hg help -c multirevs' to see help for the multirevs command @@ -770,7 +770,7 @@ multirevs command - (use "hg multirevs -h" to show more help) + (use 'hg multirevs -h' to show more help) [255] @@ -830,7 +830,7 @@ dodo Does nothing foofoo Writes 'Foo foo' - (use "hg help -v -e dodo" to show built-in aliases and global options) + (use 'hg help -v -e dodo' to show built-in aliases and global options) Make sure that '-v -e' prints list of built-in aliases along with extension help itself @@ -871,7 +871,7 @@ Does nothing - (use "hg help -e dodo" to show help for the dodo extension) + (use 'hg help -e dodo' to show help for the dodo extension) options: @@ -933,7 +933,7 @@ beep Writes 'Beep beep' something Does something - (use "hg help -v dudu" to show built-in aliases and global options) + (use 'hg help -v dudu' to show built-in aliases and global options) In case when extension name doesn't match any of its commands, help options '-v' and '-v -e' should be equivalent @@ -1011,7 +1011,7 @@ patchbomb command to send changesets as (a series of) patch emails - (use "hg help extensions" for information on enabling extensions) + (use 'hg help extensions' for information on enabling extensions) $ hg qdel @@ -1020,7 +1020,7 @@ mq manage a stack of patches - (use "hg help extensions" for information on enabling extensions) + (use 'hg help extensions' for information on enabling extensions) [255] @@ -1030,7 +1030,7 @@ churn command to display statistics about repository history - (use "hg help extensions" for information on enabling extensions) + (use 'hg help extensions' for information on enabling extensions) [255] @@ -1040,12 +1040,12 @@ $ hg help churn churn extension - command to display statistics about repository history - (use "hg help extensions" for information on enabling extensions) + (use 'hg help extensions' for information on enabling extensions) $ hg help patchbomb patchbomb extension - command to send changesets as (a series of) patch emails - (use "hg help extensions" for information on enabling extensions) + (use 'hg help extensions' for information on enabling extensions) Broken disabled extension and command: @@ -1065,7 +1065,7 @@ $ hg --config extensions.path=./path.py help broken broken extension - (no help text available) - (use "hg help extensions" for information on enabling extensions) + (use 'hg help extensions' for information on enabling extensions) $ cat > hgext/forest.py <<EOF @@ -1074,7 +1074,7 @@ $ hg --config extensions.path=./path.py help foo > /dev/null warning: error finding commands in $TESTTMP/hgext/forest.py (glob) abort: no such help topic: foo - (try "hg help --keyword foo") + (try 'hg help --keyword foo') [255] $ cat > throw.py <<EOF
--- a/tests/test-globalopts.t Tue Sep 20 23:47:30 2016 +0000 +++ b/tests/test-globalopts.t Tue Sep 20 23:47:46 2016 +0000 @@ -361,7 +361,7 @@ templating Template Usage urls URL Paths - (use "hg help -v" to show built-in aliases and global options) + (use 'hg help -v' to show built-in aliases and global options) @@ -444,7 +444,7 @@ templating Template Usage urls URL Paths - (use "hg help -v" to show built-in aliases and global options) + (use 'hg help -v' to show built-in aliases and global options) Not tested: --debugger
--- a/tests/test-help.t Tue Sep 20 23:47:30 2016 +0000 +++ b/tests/test-help.t Tue Sep 20 23:47:46 2016 +0000 @@ -23,7 +23,7 @@ summary summarize working directory state update update working directory (or switch revisions) - (use "hg help" for the full list of commands or "hg -v" for details) + (use 'hg help' for the full list of commands or 'hg -v' for details) $ hg -q add add the specified files on the next commit @@ -123,7 +123,7 @@ templating Template Usage urls URL Paths - (use "hg help -v" to show built-in aliases and global options) + (use 'hg help -v' to show built-in aliases and global options) $ hg -q help add add the specified files on the next commit @@ -332,7 +332,7 @@ -h --help display help and exit --hidden consider hidden changesets - (use "hg help" for the full list of commands) + (use 'hg help' for the full list of commands) $ hg add -h hg add [OPTION]... [FILE]... @@ -467,7 +467,7 @@ -S --subrepos recurse into subrepositories -n --dry-run do not perform actions, just print output - (use "hg add -h" to show more help) + (use 'hg add -h' to show more help) [255] Test ambiguous command help @@ -478,7 +478,7 @@ add add the specified files on the next commit addremove add all new files, delete all missing files - (use "hg help -v ad" to show built-in aliases and global options) + (use 'hg help -v ad' to show built-in aliases and global options) Test command without options @@ -622,7 +622,7 @@ $ hg help foo abort: no such help topic: foo - (try "hg help --keyword foo") + (try 'hg help --keyword foo') [255] $ hg skjdfks @@ -649,7 +649,7 @@ summary summarize working directory state update update working directory (or switch revisions) - (use "hg help" for the full list of commands or "hg -v" for details) + (use 'hg help' for the full list of commands or 'hg -v' for details) [255] @@ -842,7 +842,7 @@ templating Template Usage urls URL Paths - (use "hg help -v" to show built-in aliases and global options) + (use 'hg help -v' to show built-in aliases and global options) Test list of internal help commands @@ -921,7 +921,7 @@ debugwireargs (no help text available) - (use "hg help -v debug" to show built-in aliases and global options) + (use 'hg help -v debug' to show built-in aliases and global options) internals topic renders index of available sub-topics @@ -1104,7 +1104,7 @@ nohelp (no help text available) - (use "hg help -v helpext" to show built-in aliases and global options) + (use 'hg help -v helpext' to show built-in aliases and global options) test deprecated and experimental options are hidden in command help @@ -1330,7 +1330,7 @@ Extension Commands: $ hg help -c schemes abort: no such help topic: schemes - (try "hg help --keyword schemes") + (try 'hg help --keyword schemes') [255] $ hg help -e schemes |head -1 schemes extension - extend schemes with shortcuts to repository swarms @@ -1345,7 +1345,7 @@ $ hg help -e -c commit > /dev/null $ hg help -e commit > /dev/null abort: no such help topic: commit - (try "hg help --keyword commit") + (try 'hg help --keyword commit') [255] Test keyword search help @@ -1387,14 +1387,14 @@ $ hg help nonexistingtopicthatwillneverexisteverever abort: no such help topic: nonexistingtopicthatwillneverexisteverever - (try "hg help --keyword nonexistingtopicthatwillneverexisteverever") + (try 'hg help --keyword nonexistingtopicthatwillneverexisteverever') [255] Test unfound keyword $ hg help --keyword nonexistingwordthatwillneverexisteverever abort: no matches - (try "hg help" for a list of topics) + (try 'hg help' for a list of topics) [255] Test omit indicating for help @@ -1633,7 +1633,7 @@ $ hg help -e ambiguous ambiguous extension - (no help text available) - (use "hg help extensions" for information on enabling extensions) + (use 'hg help extensions' for information on enabling extensions) Test dynamic list of merge tools only shows up once $ hg help merge-tools
--- a/tests/test-mq.t Tue Sep 20 23:47:30 2016 +0000 +++ b/tests/test-mq.t Tue Sep 20 23:47:46 2016 +0000 @@ -96,7 +96,7 @@ qtop print the name of the current patch qunapplied print the patches not yet applied - (use "hg help -v mq" to show built-in aliases and global options) + (use 'hg help -v mq' to show built-in aliases and global options) $ hg init a $ cd a
--- a/tests/test-qrecord.t Tue Sep 20 23:47:30 2016 +0000 +++ b/tests/test-qrecord.t Tue Sep 20 23:47:46 2016 +0000 @@ -9,7 +9,7 @@ record extension - commands to interactively select changes for commit/qrefresh (DEPRECATED) - (use "hg help extensions" for information on enabling extensions) + (use 'hg help extensions' for information on enabling extensions) help qrecord (no record) @@ -19,7 +19,7 @@ record commands to interactively select changes for commit/qrefresh (DEPRECATED) - (use "hg help extensions" for information on enabling extensions) + (use 'hg help extensions' for information on enabling extensions) $ echo "[extensions]" >> $HGRCPATH $ echo "record=" >> $HGRCPATH @@ -55,7 +55,7 @@ This command is not available when committing a merge. - (use "hg help -e record" to show help for the record extension) + (use 'hg help -e record' to show help for the record extension) options ([+] can be repeated): @@ -99,7 +99,7 @@ interactively record a new patch - (use "hg qrecord -h" to show more help) + (use 'hg qrecord -h' to show more help) [255] qrecord patch (mq not present)
--- a/tests/test-record.t Tue Sep 20 23:47:30 2016 +0000 +++ b/tests/test-record.t Tue Sep 20 23:47:46 2016 +0000 @@ -41,7 +41,7 @@ This command is not available when committing a merge. - (use "hg help -e record" to show help for the record extension) + (use 'hg help -e record' to show help for the record extension) options ([+] can be repeated):
--- a/tests/test-shelve.t Tue Sep 20 23:47:30 2016 +0000 +++ b/tests/test-shelve.t Tue Sep 20 23:47:46 2016 +0000 @@ -54,7 +54,7 @@ To delete specific shelved changes, use "--delete". To delete all shelved changes, use "--cleanup". - (use "hg help -e shelve" to show help for the shelve extension) + (use 'hg help -e shelve' to show help for the shelve extension) options ([+] can be repeated):
--- a/tests/test-strict.t Tue Sep 20 23:47:30 2016 +0000 +++ b/tests/test-strict.t Tue Sep 20 23:47:46 2016 +0000 @@ -37,7 +37,7 @@ summary summarize working directory state update update working directory (or switch revisions) - (use "hg help" for the full list of commands or "hg -v" for details) + (use 'hg help' for the full list of commands or 'hg -v' for details) [255] $ hg annotate a 0: a
--- a/tests/test-strip.t Tue Sep 20 23:47:30 2016 +0000 +++ b/tests/test-strip.t Tue Sep 20 23:47:46 2016 +0000 @@ -704,7 +704,7 @@ strip changesets and all their descendants from the repository - (use "hg help -e strip" to show help for the strip extension) + (use 'hg help -e strip' to show help for the strip extension) options ([+] can be repeated): @@ -717,7 +717,7 @@ -B --bookmark VALUE [+] remove revs only reachable from given bookmark --mq operate on patch repository - (use "hg strip -h" to show more help) + (use 'hg strip -h' to show more help) [255] $ cd ..