Ozzy
Ozzy

Reputation: 95

How to Pull from specific changeset

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

Answers (2)

elkoo
elkoo

Reputation: 762

First pull the source:

hg pull

Then update to specific revision:

hg up -r <changeset number>

Upvotes: -1

Vince
Vince

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

Related Questions