Mercurial: Checkout Files for Revision
Asked Answered
F

2

6

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.

Fingernail answered 5/12, 2013 at 20:42 Comment(0)
B
13

To update your working directory to revision <rev>:

hg update -r <rev>
Breaker answered 5/12, 2013 at 22:37 Comment(0)
T
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/
Thomasinethomason answered 20/3, 2023 at 8:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.