Reputation: 95
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 ?
Upvotes: 2
Views: 6824
Reputation: 762
First pull the source:
hg pull
Then update to specific revision:
hg up -r <changeset number>
Upvotes: -1
Reputation: 3577
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.
Upvotes: 3