5636 def update(ui, repo, node=None, rev=None, clean=False, date=None, check=False): |
5636 def update(ui, repo, node=None, rev=None, clean=False, date=None, check=False): |
5637 """update working directory (or switch revisions) |
5637 """update working directory (or switch revisions) |
5638 |
5638 |
5639 Update the repository's working directory to the specified |
5639 Update the repository's working directory to the specified |
5640 changeset. If no changeset is specified, update to the tip of the |
5640 changeset. If no changeset is specified, update to the tip of the |
5641 current named branch and move the current bookmark. |
5641 current named branch and move the current bookmark (see :hg:`help |
|
5642 bookmarks`). |
5642 |
5643 |
5643 If the changeset is not a descendant of the working directory's |
5644 If the changeset is not a descendant of the working directory's |
5644 parent, the update is aborted. With the -c/--check option, the |
5645 parent, the update is aborted. With the -c/--check option, the |
5645 working directory is checked for uncommitted changes; if none are |
5646 working directory is checked for uncommitted changes; if none are |
5646 found, the working directory is updated to the specified |
5647 found, the working directory is updated to the specified |