Mercurial > hg
changeset 28288:e417e4512b0f stable
doc: remove deprecated option from synopsis of command help
Before this patch, deprecated options below are used in synopsis of
command help, even though they aren't listed up as available options
by default. These might confuse readers.
- -n (no-op, now) of strip
- -a/--active of branches
- -f/--force of merge
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Tue, 01 Mar 2016 03:28:46 +0900 |
parents | adf32601916c |
children | d493d64757eb |
files | hgext/strip.py mercurial/commands.py tests/test-strip.t |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/strip.py Mon Feb 29 22:20:53 2016 -0300 +++ b/hgext/strip.py Tue Mar 01 03:28:46 2016 +0900 @@ -90,7 +90,7 @@ "strip")), ('B', 'bookmark', [], _("remove revs only reachable from given" " bookmark"))], - _('hg strip [-k] [-f] [-n] [-B bookmark] [-r] REV...')) + _('hg strip [-k] [-f] [-B bookmark] [-r] REV...')) def stripcmd(ui, repo, *revs, **opts): """strip changesets and all their descendants from the repository
--- a/mercurial/commands.py Mon Feb 29 22:20:53 2016 -0300 +++ b/mercurial/commands.py Tue Mar 01 03:28:46 2016 +0900 @@ -1232,7 +1232,7 @@ _('show only branches that have unmerged heads (DEPRECATED)')), ('c', 'closed', False, _('show normal and closed branches')), ] + formatteropts, - _('[-ac]')) + _('[-c]')) def branches(ui, repo, active=False, closed=False, **opts): """list repository named branches @@ -5175,7 +5175,7 @@ ('P', 'preview', None, _('review revisions to merge (no merge is performed)')) ] + mergetoolopts, - _('[-P] [-f] [[-r] REV]')) + _('[-P] [[-r] REV]')) def merge(ui, repo, node=None, **opts): """merge another revision into working directory
--- a/tests/test-strip.t Mon Feb 29 22:20:53 2016 -0300 +++ b/tests/test-strip.t Tue Mar 01 03:28:46 2016 +0900 @@ -659,7 +659,7 @@ $ hg strip -b tip hg strip: option -b not recognized - hg strip [-k] [-f] [-n] [-B bookmark] [-r] REV... + hg strip [-k] [-f] [-B bookmark] [-r] REV... strip changesets and all their descendants from the repository