41
votes

How can you clone a Mercurial repository as of a specific changeset?

Ie: If the master repo has changesets 1-10, how can get a copy of the source as it existed in changeset #7?

1

1 Answers

58
votes

This command tells to use -r / --rev switch:

hg help clone

So :

hg clone -r 7