Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 6350:6aa4a3fa4e60
update: no -C needed to switch branches without outstanding changes
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 22 Mar 2008 13:30:08 -0500 |
parents | 3b42f7ac6916 |
children | 04d615b2d5e9 |
line wrap: on
line diff
--- a/mercurial/commands.py Sat Mar 22 19:01:09 2008 +0100 +++ b/mercurial/commands.py Sat Mar 22 13:30:08 2008 -0500 @@ -2750,15 +2750,15 @@ tip of the current branch if none is specified. See 'hg help dates' for a list of formats valid for -d/--date. - If there are no outstanding changes in the working directory and - there is a linear relationship between the current version and the - requested version, the result is the requested version. - - To merge the working directory with another revision, use the - merge command. - - By default, update will refuse to run if doing so would require - discarding local changes. + If there are no outstanding changes in the working directory, the + result is the requested version. + + If the requested version is a descendant of the working directory + and there are outstanding changes, those changes will be merged + into the result. + + By default, update will refuse to run if there are outstanding + changes and the update spans branches. """ if rev and node: raise util.Abort(_("please specify just one revision"))