equal
deleted
inserted
replaced
4091 .. note:: |
4091 .. note:: |
4092 To check out earlier revisions, you should use :hg:`update REV`. |
4092 To check out earlier revisions, you should use :hg:`update REV`. |
4093 To cancel a merge (and lose your changes), use :hg:`update --clean .`. |
4093 To cancel a merge (and lose your changes), use :hg:`update --clean .`. |
4094 |
4094 |
4095 With no revision specified, revert the named files or directories |
4095 With no revision specified, revert the named files or directories |
4096 to the contents they had in the first parent of the working directory. |
4096 to the state they had in the first parent of the working directory. |
4097 This restores the contents of the affected files to an unmodified |
4097 This restores the contents of the affected files to an unmodified |
4098 state and unschedules adds, removes, copies, and renames. |
4098 state and unschedules adds, removes, copies, and renames. |
4099 |
4099 |
4100 Using the -r/--rev option, revert the given files or directories |
4100 Using the -r/--rev option, revert the given files or directories |
4101 to their contents as of a specific revision. This can be helpful |
4101 to their contents as of a specific revision. This can be helpful |
4105 Revert modifies the working directory. It does not commit any |
4105 Revert modifies the working directory. It does not commit any |
4106 changes, or change the parent of the working directory. If you |
4106 changes, or change the parent of the working directory. If you |
4107 revert to a revision other than the parent of the working |
4107 revert to a revision other than the parent of the working |
4108 directory, the reverted files will thus appear modified |
4108 directory, the reverted files will thus appear modified |
4109 afterwards. |
4109 afterwards. |
4110 |
|
4111 If a file has been deleted, it is restored. Files scheduled for |
|
4112 addition are just unscheduled and left as they are. If the |
|
4113 executable mode of a file was changed, it is reset. |
|
4114 |
4110 |
4115 If names are given, all files matching the names are reverted. |
4111 If names are given, all files matching the names are reverted. |
4116 If no arguments are given, no files are reverted. |
4112 If no arguments are given, no files are reverted. |
4117 |
4113 |
4118 Modified files are saved with a .orig suffix before reverting. |
4114 Modified files are saved with a .orig suffix before reverting. |