change the specified files to match a commit
With no revision specified, restore the contents of files to an unmodified state and unschedule adds, removes, copies, and renames. In other words, revert the specified files or directories to the contents they had in the current commit. If you are in the middle of an unfinished merge state, you must explicitly specify a revision.
-r/--rev option to revert the given files or directories to
their states as of a specific commit. Because revert does not actually
check out the specified commit, the files appear as modified and show
up as pending changes in
Revert causes files to match their contents in another commit. If
instead you want to undo a specific landed commit, use
sl help backout for more information.
Modified files are saved with an .orig suffix before reverting.
To disable these backups, use
--no-backup. You can configure Sapling
to store these backup files in a custom directory relative to the root
of the repository by setting the
Returns 0 on success.
|revert all changes when no arguments given|
|tipmost revision matching date|
|revert to the specified revision|
|do not save backup copies of files|
|interactively select the changes|
|include files matching the given patterns|
|exclude files matching the given patterns|
|do not perform actions, just print output|