fix: mark -r as advanced
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 13 Mar 2020 12:16:20 -0700
changeset 44575 a6ef1e8e2f6d
parent 44574 5205b46bd887
child 44576 2ec6160449aa
fix: mark -r as advanced See the previous patch for reasoning. I planned to even mark it deprecated, but someone (timeless?) on the #mercurial IRC channel said they sometimes wanted to use `-r` with its existing semantics. Differential Revision: https://phab.mercurial-scm.org/D8288
hgext/fix.py
tests/test-fix.t
--- a/hgext/fix.py	Fri Mar 13 12:16:00 2020 -0700
+++ b/hgext/fix.py	Fri Mar 13 12:16:20 2020 -0700
@@ -213,7 +213,7 @@
     ),
     _(b'REV'),
 )
-revopt = (b'r', b'rev', [], _(b'revisions to fix'), _(b'REV'))
+revopt = (b'r', b'rev', [], _(b'revisions to fix (ADVANCED)'), _(b'REV'))
 sourceopt = (
     b's',
     b'source',
--- a/tests/test-fix.t	Fri Mar 13 12:16:00 2020 -0700
+++ b/tests/test-fix.t	Fri Mar 13 12:16:20 2020 -0700
@@ -107,7 +107,6 @@
       --all            fix all non-public non-obsolete revisions
       --base REV [+]   revisions to diff against (overrides automatic selection,
                        and applies to every revision being fixed)
-   -r --rev REV [+]    revisions to fix
    -s --source REV [+] fix the specified revisions and their descendants
    -w --working-dir    fix the working directory
       --whole          always fix every line of a file