5

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.

Zoe
  • 27,060
  • 21
  • 118
  • 148
sdoca
  • 7,832
  • 23
  • 70
  • 127

2 Answers2

12

To update your working directory to revision <rev>:

hg update -r <rev>
David Levesque
  • 22,181
  • 8
  • 67
  • 82
0

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/