mercurial/commands.py
changeset 19209 4b9e5b71dfa9
parent 19201 309c439cdbaa
parent 19197 01d68fb07915
child 19211 3bfd7f1e7485
equal deleted inserted replaced
19208:0b564cf359a7 19209:4b9e5b71dfa9
  4932     _('[OPTION]... [-r REV] [NAME]...'))
  4932     _('[OPTION]... [-r REV] [NAME]...'))
  4933 def revert(ui, repo, *pats, **opts):
  4933 def revert(ui, repo, *pats, **opts):
  4934     """restore files to their checkout state
  4934     """restore files to their checkout state
  4935 
  4935 
  4936     .. note::
  4936     .. note::
  4937 
       
  4938        To check out earlier revisions, you should use :hg:`update REV`.
  4937        To check out earlier revisions, you should use :hg:`update REV`.
  4939        To cancel an uncommitted merge (and lose your changes), use
  4938        To cancel an uncommitted merge (and lose your changes), use
  4940        :hg:`update --clean .`.
  4939        :hg:`update --clean .`.
  4941 
  4940 
  4942     With no revision specified, revert the specified files or directories
  4941     With no revision specified, revert the specified files or directories