Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 46107:aa4dbc14f735
diff: deprecate -r option
The new `--from`/`--to` options should be enough to support all the
uses cases and are easier to understand, so there is no reason that
I'm aware of to use `-r` anymore.
Differential Revision: https://phab.mercurial-scm.org/D9564
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 10 Dec 2020 14:39:22 -0800 |
parents | 4a0730b7127e |
children | 41d695a08e90 |
line wrap: on
line diff
--- a/mercurial/commands.py Thu Dec 10 12:06:55 2020 -0800 +++ b/mercurial/commands.py Thu Dec 10 14:39:22 2020 -0800 @@ -2455,7 +2455,7 @@ @command( b'diff', [ - (b'r', b'rev', [], _(b'revision'), _(b'REV')), + (b'r', b'rev', [], _(b'revision (DEPRECATED)'), _(b'REV')), (b'', b'from', b'', _(b'revision to diff from'), _(b'REV1')), (b'', b'to', b'', _(b'revision to diff to'), _(b'REV2')), (b'c', b'change', b'', _(b'change made by revision'), _(b'REV')),