Search code examples
mercurialclone

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


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?


Solution

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

    hg help clone
    

    So :

    hg clone -r 7