4145 |
4145 |
4146 @command('revert', |
4146 @command('revert', |
4147 [('a', 'all', None, _('revert all changes when no arguments given')), |
4147 [('a', 'all', None, _('revert all changes when no arguments given')), |
4148 ('d', 'date', '', _('tipmost revision matching date'), _('DATE')), |
4148 ('d', 'date', '', _('tipmost revision matching date'), _('DATE')), |
4149 ('r', 'rev', '', _('revert to the specified revision'), _('REV')), |
4149 ('r', 'rev', '', _('revert to the specified revision'), _('REV')), |
4150 ('', 'no-backup', None, _('do not save backup copies of files')), |
4150 ('C', 'no-backup', None, _('do not save backup copies of files')), |
4151 ] + walkopts + dryrunopts, |
4151 ] + walkopts + dryrunopts, |
4152 _('[OPTION]... [-r REV] [NAME]...')) |
4152 _('[OPTION]... [-r REV] [NAME]...')) |
4153 def revert(ui, repo, *pats, **opts): |
4153 def revert(ui, repo, *pats, **opts): |
4154 """restore files to their checkout state |
4154 """restore files to their checkout state |
4155 |
4155 |