Is this the expected revert behaviour ?

Zbynek Winkler zwin at users.sourceforge.net
Thu May 4 15:45:15 CDT 2006


Sébastien Pierre wrote:

>[skip]
>
>So it looks like revert does not really work. Is it ?
>  
>
I believe it does work. What you probably wanted to use is update 
instead of revert. The difference is (as I understand) that revert takes 
file contents from the revision you specified and puts them into the 
current workspace while update (with -C) resets your workspace to the 
specified revision. Meaning it also resets the parent of the workspace 
while revert does not. Status checks the status against the parent...

HTH,
Zbynek

-- 
http://zw.matfyz.cz/     http://robotika.cz/
Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic



More information about the Mercurial mailing list