Help text for pull's '--update' option is wrong

Steve Losh steve at stevelosh.com
Thu Jul 16 02:26:11 CDT 2009


Running `hg help pull` prints the following help about the update  
option:

  -u --update     update to new tip if changesets were pulled

This doesn't match the actual behavior.  Running `hg pull -u` will  
always attempt to update, even if no changesets were pulled.  To test  
this you can update to a previous revision and run a pull with nothing  
new in the destination repo -- your working directory will still be  
updated to tip (or fail if it crosses branches, etc).

I'm not sure what the best replacement help text would be.  Maybe  
"update to tip after pulling"?  Anyone have any suggestions?

--
Steve Losh
http://stevelosh.com/


More information about the Mercurial-devel mailing list