Reputation: 189646
I have a local Mercurial repository that is up-to-date. I want to retrieve an earlier version of one of the files without disturbing my local copy of the repository.
Is there a way to do this? (looks like maybe hg archive
but I'm not sure how to use it)
Upvotes: 1
Views: 169
Reputation: 3020
The most common way to look at a previous revision of a file would be with hg update -r <revision number>
to update your working directory to that revision, then to look at the file. If you really don't want to touch your working directory, clone your repo, then use hg update
on the clone.
Upvotes: 0