Patchwork [STABLE] doc: remove deprecated option from synopsis of command help

login
register
mail settings
Submitter Katsunori FUJIWARA
Date Feb. 29, 2016, 6:31 p.m.
Message ID <f29924947aa527794f59.1456770696@feefifofum>
Download mbox | patch
Permalink /patch/13475/
State Accepted
Headers show

Comments

Katsunori FUJIWARA - Feb. 29, 2016, 6:31 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# Date 1456770526 -32400
#      Tue Mar 01 03:28:46 2016 +0900
# Branch stable
# Node ID f29924947aa527794f59c3ad12357450b9137593
# Parent  c407583cf5f6639b680c638b0596376e50542716
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

Patch

diff --git a/hgext/strip.py b/hgext/strip.py
--- a/hgext/strip.py
+++ b/hgext/strip.py
@@ -90,7 +90,7 @@  def strip(ui, repo, revs, update=True, b
                                 "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
 
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1232,7 +1232,7 @@  def branch(ui, repo, label=None, **opts)
       _('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 @@  def manifest(ui, repo, node=None, rev=No
     ('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
 
diff --git a/tests/test-strip.t b/tests/test-strip.t
--- a/tests/test-strip.t
+++ b/tests/test-strip.t
@@ -659,7 +659,7 @@  Make sure no one adds back a -b option:
 
   $ 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