Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 24359:521fe8287dd5
revert: add flag to make revert interactive
author | Laurent Charignon <lcharignon@fb.com> |
---|---|
date | Mon, 16 Mar 2015 16:33:59 -0700 |
parents | fefcafda10b8 |
children | 135b23868f45 |
comparison
equal
deleted
inserted
replaced
24358:8d9e9063b040 | 24359:521fe8287dd5 |
---|---|
5373 @command('revert', | 5373 @command('revert', |
5374 [('a', 'all', None, _('revert all changes when no arguments given')), | 5374 [('a', 'all', None, _('revert all changes when no arguments given')), |
5375 ('d', 'date', '', _('tipmost revision matching date'), _('DATE')), | 5375 ('d', 'date', '', _('tipmost revision matching date'), _('DATE')), |
5376 ('r', 'rev', '', _('revert to the specified revision'), _('REV')), | 5376 ('r', 'rev', '', _('revert to the specified revision'), _('REV')), |
5377 ('C', 'no-backup', None, _('do not save backup copies of files')), | 5377 ('C', 'no-backup', None, _('do not save backup copies of files')), |
5378 ('i', 'interactive', None, _('interactively select the changes')), | |
5378 ] + walkopts + dryrunopts, | 5379 ] + walkopts + dryrunopts, |
5379 _('[OPTION]... [-r REV] [NAME]...')) | 5380 _('[OPTION]... [-r REV] [NAME]...')) |
5380 def revert(ui, repo, *pats, **opts): | 5381 def revert(ui, repo, *pats, **opts): |
5381 """restore files to their checkout state | 5382 """restore files to their checkout state |
5382 | 5383 |