From 989539e1ec09a406f49cbb8c5c782c09d3b4c276 Mon Sep 17 00:00:00 2001 From: pxgamer Date: Sun, 14 Jan 2018 13:05:10 +0000 Subject: [PATCH] hg-update: add page --- pages/common/hg-update.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/common/hg-update.md diff --git a/pages/common/hg-update.md b/pages/common/hg-update.md new file mode 100644 index 0000000000..d0fdf4c1ad --- /dev/null +++ b/pages/common/hg-update.md @@ -0,0 +1,19 @@ +# hg update + +> Update the working directory to a specified changeset. + +- Update to the tip of the current branch: + +`hg update` + +- Update to the specified revision: + +`hg update --rev {{revision}}` + +- Update and discard uncommitted changes: + +`hg update --clean` + +- Update to the last commit matching a specified date: + +`hg update --date {{date}}`