# HG changeset patch # User Kevin Bullock # Date 2010-10-08 04:34:21 # Node ID 8c034a825cfef3a6a9966c76967f4c9c0722116e # Parent 34d8247a4595f41ed9f22a065975ecd84f670651 help: improve description of update --check diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -3745,12 +3745,15 @@ def update(ui, repo, node=None, rev=None """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 @@ def update(ui, repo, node=None, rev=None 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 @@ table = { "^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', '',