comparison mercurial/commands.py @ 46106:4a0730b7127e

diff: update synopsis to use --from/--to instead of -r Differential Revision: https://phab.mercurial-scm.org/D9563
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 10 Dec 2020 12:06:55 -0800
parents ed5a0b5d21a6
children aa4dbc14f735
comparison
equal deleted inserted replaced
46105:ed5a0b5d21a6 46106:4a0730b7127e
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'), _(b'REV')),
2459 (b'', b'from', b'', _(b'revision to diff from'), _(b'REV')), 2459 (b'', b'from', b'', _(b'revision to diff from'), _(b'REV1')),
2460 (b'', b'to', b'', _(b'revision to diff to'), _(b'REV')), 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
2464 + diffopts2 2464 + diffopts2
2465 + walkopts 2465 + walkopts
2466 + subrepoopts, 2466 + subrepoopts,
2467 _(b'[OPTION]... ([-c REV] | [-r REV1 [-r REV2]]) [FILE]...'), 2467 _(b'[OPTION]... ([-c REV] | [--from REV1] [--to REV2]) [FILE]...'),
2468 helpcategory=command.CATEGORY_FILE_CONTENTS, 2468 helpcategory=command.CATEGORY_FILE_CONTENTS,
2469 helpbasic=True, 2469 helpbasic=True,
2470 inferrepo=True, 2470 inferrepo=True,
2471 intents={INTENT_READONLY}, 2471 intents={INTENT_READONLY},
2472 ) 2472 )