Mercurial: Checkout Files for Revision

6.1k views Asked by At

Is it possible to checkout all the files in a repository for a specific revision? Say for example that my repository is at revision 88. I don't want to revert or backout any of the changes up to revision 88, but just get a copy of them at revision 50.

2

There are 2 answers

0
David Levesque On BEST ANSWER

To update your working directory to revision <rev>:

hg update -r <rev>
0
Bill Tür stands with Ukraine On

As an alternative to David Levesqe's answer you could use hg clone with the --updaterev (or -u) option to make a copy with a specific revision, for example:

hg clone --updaterev 50 yourRepo/ copyWithRev50/