hg-rollback - Man Page

roll back the last transaction (DANGEROUS) (DEPRECATED)

Synopsis

hg rollback

Description

Please use hg commit --amend instead of rollback to correct mistakes in the last commit.

This command should be used with care. There is only one level of rollback, and there is no way to undo a rollback. It will also restore the dirstate at the time of the last transaction, losing any dirstate changes since that time. This command does not alter the working directory.

Transactions are used to encapsulate the effects of all commands that create new changesets or propagate existing changesets into a repository.

For example, the following commands are transactional, and their effects can be rolled back:

Options

-n, ā€‰--dry-run

do not perform actions, just print output

-f, ā€‰--force

ignore safety measures