How to get a specific version of a file in Mercurial? December 20, 2022 by Tarik I think you want hg revert -r<rev> <file> (this will change that file to be as it was at the given revision).