How to Pull from specific changeset

6.6k Views Asked by At

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 ?

2

There are 2 best solutions below

1
On BEST ANSWER

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.

1
On

First pull the source:

hg pull

Then update to specific revision:

hg up -r <changeset number>