comparison mercurial/commands.py @ 34958:5910db5d1913

revert: no longer mark --interactive as experimental We seem to have settled down on behavior changes here (nothing matching revset `keyword(revert) and keyword(interactive)` since 4.2 was released), so let's go ahead and advertise this excellent feature. .. feature:: revert --interactive The revert command now accepts the flag --interactive to allow reverting only some of the changes to the specified files.
author Augie Fackler <augie@google.com>
date Mon, 30 Oct 2017 17:46:07 -0400
parents ff178743e59b
children e61d661b0350
comparison
equal deleted inserted replaced
34957:58e7791e243b 34958:5910db5d1913
4515 @command('revert', 4515 @command('revert',
4516 [('a', 'all', None, _('revert all changes when no arguments given')), 4516 [('a', 'all', None, _('revert all changes when no arguments given')),
4517 ('d', 'date', '', _('tipmost revision matching date'), _('DATE')), 4517 ('d', 'date', '', _('tipmost revision matching date'), _('DATE')),
4518 ('r', 'rev', '', _('revert to the specified revision'), _('REV')), 4518 ('r', 'rev', '', _('revert to the specified revision'), _('REV')),
4519 ('C', 'no-backup', None, _('do not save backup copies of files')), 4519 ('C', 'no-backup', None, _('do not save backup copies of files')),
4520 ('i', 'interactive', None, 4520 ('i', 'interactive', None, _('interactively select the changes')),
4521 _('interactively select the changes (EXPERIMENTAL)')),
4522 ] + walkopts + dryrunopts, 4521 ] + walkopts + dryrunopts,
4523 _('[OPTION]... [-r REV] [NAME]...')) 4522 _('[OPTION]... [-r REV] [NAME]...'))
4524 def revert(ui, repo, *pats, **opts): 4523 def revert(ui, repo, *pats, **opts):
4525 """restore files to their checkout state 4524 """restore files to their checkout state
4526 4525