commands.sh

hg update

all

Update the working directory to a specified changeset.

More info →

Options (3)

-r, --revboolean

Update to the specified revision

Example: hg update {{[-r|--rev]}} {{revision}}
-C, --cleanboolean

Update and discard uncommitted changes

Example: hg update {{[-C|--clean]}}
-d, --dateboolean

Update to the last commit matching a specified date

Example: hg update {{[-d|--date]}} {{dd-mm-yyyy}}

Examples (4)

Update to the tip of the current branch

Update to the specified revision

hg update [-r|--rev] revision

Update and discard uncommitted changes

hg update [-C|--clean]

Update to the last commit matching a specified date

hg update [-d|--date] dd-mm-yyyy
made by @shridhargupta | data from tldr-pages