Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 11612:0e789549271d stable
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.
author | Steve Losh <steve@stevelosh.com> |
---|---|
date | Wed, 14 Jul 2010 18:28:12 -0400 |
parents | 4f5a6df2af92 |
children | 6dbdf5c5c5bd 9e874ee0fe97 |
comparison
equal
deleted
inserted
replaced
11611:4f5a6df2af92 | 11612:0e789549271d |
---|---|
3777 """update working directory (or switch revisions) | 3777 """update working directory (or switch revisions) |
3778 | 3778 |
3779 Update the repository's working directory to the specified | 3779 Update the repository's working directory to the specified |
3780 changeset. | 3780 changeset. |
3781 | 3781 |
3782 If no changeset is specified, attempt to update to the head of the | 3782 If no changeset is specified, attempt to update to the tip of the |
3783 current branch. If this head is a descendant of the working | 3783 current branch. If this changeset is a descendant of the working |
3784 directory's parent, update to it, otherwise abort. | 3784 directory's parent, update to it, otherwise abort. |
3785 | 3785 |
3786 The following rules apply when the working directory contains | 3786 The following rules apply when the working directory contains |
3787 uncommitted changes: | 3787 uncommitted changes: |
3788 | 3788 |