4084 ('r', 'rev', '', _('revert to the specified revision'), _('REV')), |
4084 ('r', 'rev', '', _('revert to the specified revision'), _('REV')), |
4085 ('', 'no-backup', None, _('do not save backup copies of files')), |
4085 ('', 'no-backup', None, _('do not save backup copies of files')), |
4086 ] + walkopts + dryrunopts, |
4086 ] + walkopts + dryrunopts, |
4087 _('[OPTION]... [-r REV] [NAME]...')) |
4087 _('[OPTION]... [-r REV] [NAME]...')) |
4088 def revert(ui, repo, *pats, **opts): |
4088 def revert(ui, repo, *pats, **opts): |
4089 """restore individual files or directories to an earlier state |
4089 """restore files to their checkout state |
4090 |
4090 |
4091 .. note:: |
4091 .. note:: |
4092 This command is most likely not what you are looking for. |
4092 This command is most likely not what you are looking for. |
4093 Revert will partially overwrite content in the working |
4093 Revert will partially overwrite content in the working |
4094 directory without changing the working directory parents. Use |
4094 directory without changing the working directory parents. Use |