mercurial/commands.py
branchstable
changeset 11459 59af1d65029c
parent 11452 eac141407b85
child 11488 f786fc4b8764
equal deleted inserted replaced
11458:ec21d91c79b3 11459:59af1d65029c
  3017     return ret
  3017     return ret
  3018 
  3018 
  3019 def revert(ui, repo, *pats, **opts):
  3019 def revert(ui, repo, *pats, **opts):
  3020     """restore individual files or directories to an earlier state
  3020     """restore individual files or directories to an earlier state
  3021 
  3021 
  3022     (Use update -r to check out earlier revisions, revert does not
  3022     NOTE: This command is most likely not what you are looking for. revert
  3023     change the working directory parents.)
  3023     will partially overwrite content in the working directory without changing
       
  3024     the working directory parents. Use :hg:`update -r rev` to check out earlier
       
  3025     revisions, or :hg:`update --clean .` to undo a merge which has added
       
  3026     another parent.
  3024 
  3027 
  3025     With no revision specified, revert the named files or directories
  3028     With no revision specified, revert the named files or directories
  3026     to the contents they had in the parent of the working directory.
  3029     to the contents they had in the parent of the working directory.
  3027     This restores the contents of the affected files to an unmodified
  3030     This restores the contents of the affected files to an unmodified
  3028     state and unschedules adds, removes, copies, and renames. If the
  3031     state and unschedules adds, removes, copies, and renames. If the