comparison mercurial/commands.py @ 24873:12908cdbab73 stable

revert: make the interactive mode experimental While fixing issue4304: "record: allow editing new files" we introduced changes in record/crecord. These changes need to be matched with changes in any command using record. Revert is one of these commands and the changes have not been made for this release. Therefore, revert -i should be an experimental feature for this release.
author Laurent Charignon <lcharignon@fb.com>
date Mon, 27 Apr 2015 15:37:57 -0700
parents 45bd336e3991
children be4915009b09
comparison
equal deleted inserted replaced
24872:3510ec97ffdc 24873:12908cdbab73
5462 @command('revert', 5462 @command('revert',
5463 [('a', 'all', None, _('revert all changes when no arguments given')), 5463 [('a', 'all', None, _('revert all changes when no arguments given')),
5464 ('d', 'date', '', _('tipmost revision matching date'), _('DATE')), 5464 ('d', 'date', '', _('tipmost revision matching date'), _('DATE')),
5465 ('r', 'rev', '', _('revert to the specified revision'), _('REV')), 5465 ('r', 'rev', '', _('revert to the specified revision'), _('REV')),
5466 ('C', 'no-backup', None, _('do not save backup copies of files')), 5466 ('C', 'no-backup', None, _('do not save backup copies of files')),
5467 ('i', 'interactive', None, _('interactively select the changes')), 5467 ('i', 'interactive', None,
5468 _('interactively select the changes (EXPERIMENTAL)')),
5468 ] + walkopts + dryrunopts, 5469 ] + walkopts + dryrunopts,
5469 _('[OPTION]... [-r REV] [NAME]...')) 5470 _('[OPTION]... [-r REV] [NAME]...'))
5470 def revert(ui, repo, *pats, **opts): 5471 def revert(ui, repo, *pats, **opts):
5471 """restore files to their checkout state 5472 """restore files to their checkout state
5472 5473