changeset 44575:a6ef1e8e2f6d

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
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 13 Mar 2020 12:16:20 -0700
parents 5205b46bd887
children 2ec6160449aa
files hgext/fix.py tests/test-fix.t
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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