hg pull -u -- should it update if nothing is pulled?

TK Soh teekaysoh at gmail.com
Wed Sep 27 20:14:32 UTC 2006


On 9/27/06, Brendan Cully <brendan at kublai.com> wrote:
> Not quite.
>
> hg pull
> hg pull -u
>
> won't update the working directory to tip.
>
> hg pull
> hg update
>
> will. I'm not sure whether or not this is bad. I can't think of a
> great argument for the current behaviour though.

You are right. In any case, I favor the current behavior: update is
carried out only on newly pulled csets. IMO, 'hg pull -u' should be
considered a shortcut function that blindly update repo when nothing
new has been pulled.

I kinda agree with Colin that the help text need to reflect this more
correctly. Perhaps something like this?

 -u --update     update the working directory to tip after pulling new
changesets

hmm...



More information about the Mercurial mailing list