Question

Recently I am working on Mercurial Repository. But I don't know how to pull version control from specific change-set ID on Mercurial ? Could you please share me any solution ?

Was it helpful?

Solution

You need to use the -r option, to pull the changeset and all its ancestors:

hg pull -r <hash>

Alternatively, use the -b <branch> option to get a specific branch.

OTHER TIPS

First pull the source:

hg pull

Then update to specific revision:

hg up -r <changeset number>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top