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 ?
Asked
Active
Viewed 6,406 times
2 Answers
3
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.

Vince
- 3,497
- 2
- 19
- 15
-
this literally has no effect, current commit does not forward to new one, it does nothing – Atiq Rahman Aug 16 '20 at 07:06
-1
First pull the source:
hg pull
Then update to specific revision:
hg up -r <changeset number>

elkoo
- 704
- 9
- 23
-
This pulls the entire source, all of its change sets. This is not what OP asked for. – phdoerfler Aug 20 '21 at 14:50