Take the 2-minute tour ×  I am new to Mercurial. Just cannot
find the right command. Tried update/checkout with no luck. I am
using local repository. Thanks  share|improve this question What
do you mean by 'special version'? Do you particular version?
What are you trying to accomplish exactly by getting a special
version? –  Omnifarious Jan 21 '10 at 6:44 @Omnifarious: I
committed a stable version of a file. Then continued to work on
the file but soon realized I need the last "good" version. This
can be done by update in svn but when I try hg update, it says
"0 files ..." –  Codism Jan 21 '10 at 13:27 add comment  4
Answers  up vote 29 down vote accepted  I think you want hg
revert -r<rev> <file> (this will change that file to be as it
was at the given revision).  share|improve this answer Yep,
that's exactly what he wants. :-) –  Omnifarious Jan 21 '10 at
17:10 or just hg revert <filename> if you want to discard your
current changes, and get the latest that was commited – 
BlackTigerX Sep 15 at 7:03 add comm