equal
deleted
inserted
replaced
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 |