Hg Pull vs. Update to branch tip
Asked Answered
R

2

9

Using TortoiseHg Synchronize, clicking "Pull" pulls down the 2nd most recent revision.

At the bottom of the Synchronize interface is a button, "Update to branch tip." Clicking this button pulls down the most recent revision.

What is happening here?

Rogovy answered 4/11, 2009 at 21:27 Comment(0)
K
16

Command line hg tells this:

$ hg help pull

...

Pull changes from a remote repository to a local one.

...

-R is specified). By default, this does not update the copy of the
project in the working directory.

vs.

$ hg help up

...

Update the repository's working directory to the specified revision, or the tip of the current branch if none is specified.

Kirsten answered 4/11, 2009 at 21:37 Comment(1)
To build on @ptman's comments, you can pull and update in a single operation by using the -u flag, so $ hg pull -u [source]Valois
H
0

If you are new to mercurial or want to know you havent missed any options, this is could be helpful:

http://blog.hanxiaogang.com/hg-guide/

Heptode answered 29/1, 2019 at 13:9 Comment(1)
Cerberrussian, this is not an answer, it should be a comment. At the very least, please try to put some of the content of that blog in your "answer" so that T.Stone doesn't have to visit an external link to get his answer.Renin

© 2022 - 2024 — McMap. All rights reserved.