Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
46106:4a0730b7127e | 46107:aa4dbc14f735 |
---|---|
2453 | 2453 |
2454 | 2454 |
2455 @command( | 2455 @command( |
2456 b'diff', | 2456 b'diff', |
2457 [ | 2457 [ |
2458 (b'r', b'rev', [], _(b'revision'), _(b'REV')), | 2458 (b'r', b'rev', [], _(b'revision (DEPRECATED)'), _(b'REV')), |
2459 (b'', b'from', b'', _(b'revision to diff from'), _(b'REV1')), | 2459 (b'', b'from', b'', _(b'revision to diff from'), _(b'REV1')), |
2460 (b'', b'to', b'', _(b'revision to diff to'), _(b'REV2')), | 2460 (b'', b'to', b'', _(b'revision to diff to'), _(b'REV2')), |
2461 (b'c', b'change', b'', _(b'change made by revision'), _(b'REV')), | 2461 (b'c', b'change', b'', _(b'change made by revision'), _(b'REV')), |
2462 ] | 2462 ] |
2463 + diffopts | 2463 + diffopts |