mercurial/commands.py
branchstable
changeset 19217 2b4344f23b44
parent 19197 01d68fb07915
child 19225 6cf8e3b4e074
child 19232 b592fd33233a
equal deleted inserted replaced
19210:865beb849720 19217:2b4344f23b44
  4916 def revert(ui, repo, *pats, **opts):
  4916 def revert(ui, repo, *pats, **opts):
  4917     """restore files to their checkout state
  4917     """restore files to their checkout state
  4918 
  4918 
  4919     .. note::
  4919     .. note::
  4920        To check out earlier revisions, you should use :hg:`update REV`.
  4920        To check out earlier revisions, you should use :hg:`update REV`.
  4921        To cancel an uncommitted merge (and lose your changes), use
  4921        To cancel an uncommitted merge (and lose your changes),
  4922        :hg:`update --clean .`.
  4922        use :hg:`update --clean .`.
  4923 
  4923 
  4924     With no revision specified, revert the specified files or directories
  4924     With no revision specified, revert the specified files or directories
  4925     to the contents they had in the parent of the working directory.
  4925     to the contents they had in the parent of the working directory.
  4926     This restores the contents of files to an unmodified
  4926     This restores the contents of files to an unmodified
  4927     state and unschedules adds, removes, copies, and renames. If the
  4927     state and unschedules adds, removes, copies, and renames. If the