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 |