mercurialhgsubversion

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 ?


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.