Search code examples
mercurial

How to get a specific version of a file in Mercurial?


I am new to Mercurial. Just cannot find the right command. Tried update/checkout with no luck. I am using local repository. Thanks


Solution

  • I think you want hg revert -r<rev> <file> (this will change that file to be as it was at the given revision).