Mercurial > hg
changeset 12688:8c034a825cfe
help: improve description of update --check
author | Kevin Bullock <kbullock@ringworld.org> |
---|---|
date | Thu, 07 Oct 2010 23:34:21 -0500 |
parents | 34d8247a4595 |
children | c52c629ce19e |
files | mercurial/commands.py |
diffstat | 1 files changed, 11 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Sat Oct 09 21:54:50 2010 +0200 +++ b/mercurial/commands.py Thu Oct 07 23:34:21 2010 -0500 @@ -3745,12 +3745,15 @@ """update working directory (or switch revisions) Update the repository's working directory to the specified + changeset. If no changeset is specified, update to the tip of the + current named branch. + + If the changeset is not a descendant of the working directory's + parent, the update is aborted. With the -c/--check option, the + working directory is checked for uncommitted changes; if none are + found, the working directory is updated to the specified changeset. - If no changeset is specified, attempt to update to the tip of the - current branch. If this changeset is a descendant of the working - directory's parent, update to it, otherwise abort. - The following rules apply when the working directory contains uncommitted changes: @@ -3772,7 +3775,8 @@ Use null as the changeset to remove the working directory (like :hg:`clone -U`). - If you want to update just one file to an older changeset, use :hg:`revert`. + If you want to update just one file to an older changeset, use + :hg:`revert`. See :hg:`help dates` for a list of formats valid for -d/--date. @@ -4428,7 +4432,8 @@ "^update|up|checkout|co": (update, [('C', 'clean', None, _('discard uncommitted changes (no backup)')), - ('c', 'check', None, _('check for uncommitted changes')), + ('c', 'check', None, + _('update across branches if no uncommitted changes')), ('d', 'date', '', _('tipmost revision matching date'), _('DATE')), ('r', 'rev', '',