Mercurial > hg
changeset 38122:26b73fad45d9
githelp: lowercase the start of output messages for consistency
I left 'Mercurial' as a proper name capitalized.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 21 May 2018 23:04:28 -0400 |
parents | 10befe8e8b59 |
children | f44306940c94 |
files | hgext/githelp.py tests/test-githelp.t |
diffstat | 2 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/githelp.py Mon May 21 22:57:05 2018 -0400 +++ b/hgext/githelp.py Mon May 21 23:04:28 2018 -0400 @@ -196,7 +196,7 @@ ui.status((bytes(cmd)), "\n") def bisect(ui, repo, *args, **kwargs): - ui.status(_("See 'hg help bisect' for how to use bisect.\n\n")) + ui.status(_("see 'hg help bisect' for how to use bisect.\n\n")) def blame(ui, repo, *args, **kwargs): cmdoptions = [ @@ -456,7 +456,7 @@ ui.status((bytes(cmd)), "\n") def deprecated(ui, repo, *args, **kwargs): - ui.warn(_('This command has been deprecated in the git project, ' + + ui.warn(_('this command has been deprecated in the git project, ' + 'thus isn\'t supported by this tool.\n\n')) def diff(ui, repo, *args, **kwargs): @@ -656,8 +656,8 @@ cmd = Command("log -T '{node}\\n' -r 'ancestor(%s,%s)'" % (args[0], args[1])) - ui.status(_('NOTE: ancestors() is part of the revset language.\n'), - _("Learn more about revsets with 'hg help revsets'\n\n")) + ui.status(_('note: ancestors() is part of the revset language.\n'), + _("(learn more about revsets with 'hg help revsets')\n\n")) ui.status((bytes(cmd)), "\n") def mergetool(ui, repo, *args, **kwargs): @@ -776,7 +776,7 @@ "\n\n")) cmd['-d'] = convert(opts.get('onto')) if len(args) < 2: - raise error.Abort(_("Expected format: git rebase --onto X Y Z")) + raise error.Abort(_("expected format: git rebase --onto X Y Z")) cmd['-s'] = "'::%s - ::%s'" % (convert(args[1]), convert(args[0])) else: if len(args) == 1: @@ -815,10 +815,10 @@ hard = opts.get('hard') if opts.get('mixed'): - ui.status(_('NOTE: --mixed has no meaning since Mercurial has no ' + ui.status(_('note: --mixed has no meaning since Mercurial has no ' 'staging area\n\n')) if opts.get('soft'): - ui.status(_('NOTE: --soft has no meaning since Mercurial has no ' + ui.status(_('note: --soft has no meaning since Mercurial has no ' 'staging area\n\n')) cmd = Command('update')
--- a/tests/test-githelp.t Mon May 21 22:57:05 2018 -0400 +++ b/tests/test-githelp.t Mon May 21 23:04:28 2018 -0400 @@ -165,11 +165,11 @@ hg update .~3 $ hg githelp -- reset --mixed HEAD - NOTE: --mixed has no meaning since Mercurial has no staging area + note: --mixed has no meaning since Mercurial has no staging area hg update . $ hg githelp -- reset --soft HEAD - NOTE: --soft has no meaning since Mercurial has no staging area + note: --soft has no meaning since Mercurial has no staging area hg update . $ hg githelp -- reset --hard HEAD @@ -221,7 +221,7 @@ githelp for whatchanged should show deprecated message $ hg githelp -- whatchanged -p - This command has been deprecated in the git project, thus isn't supported by this tool. + this command has been deprecated in the git project, thus isn't supported by this tool. githelp for git branch -m renaming @@ -259,8 +259,8 @@ git merge-base $ hg githelp -- git merge-base --is-ancestor ignoring unknown option --is-ancestor - NOTE: ancestors() is part of the revset language. - Learn more about revsets with 'hg help revsets' + note: ancestors() is part of the revset language. + (learn more about revsets with 'hg help revsets') hg log -T '{node}\n' -r 'ancestor(A,B)'