[PATCH STABLE] commands: fix update's help to be more accurate
Steve Losh
steve at stevelosh.com
Wed Jul 14 17:28:47 CDT 2010
# HG changeset patch
# User Steve Losh <steve at stevelosh.com>
# Date 1279146492 14400
# Branch stable
# Node ID a2610980bd15d9a4e57cfe97cd47a61f44d9ea1d
# Parent dec57aa0f8ca0ac5a329593fecaded96f4860f36
commands: fix update's help to be more accurate
Branches can have multiple heads, so it doesn't make sense to speak of "the
head of the current branch". What update really does is try to update to the
*tip* of the current branch.
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3772,12 +3772,12 @@
"""update working directory (or switch revisions)
Update the repository's working directory to the specified
changeset.
- If no changeset is specified, attempt to update to the head of the
- current branch. If this head is a descendant of the working
+ 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:
More information about the Mercurial-devel
mailing list