hg revert on symbolic links???

Michael Smith michael.smith at thalesatm.com
Tue Mar 13 21:07:02 UTC 2007


Alexis S. L. Carvalho wrote:
> Thus spake Eric St-Jean:
>>Hi,
>>i tried hg revert on a symlink, and all i get is:
>>abort: Is a directory
>>
>>I updated to the very latest (just now) and tried it again, with the
>>same result. Before i file a bug (or maybe try to fix it), i wanted to
>>check if i'm missing something obvious.
> 
> Yup, looks like a bug.  Can you open an issue?  Please include:
> 
> - steps to reproduce (AFAICS, the symlink has to point to a directory)
> - output of the command you ran with --traceback
> 

I saw a problem recently with 0.9.1 where a user replaced a file with a 
sym link to a copy of the file, and hg didn't recognise it as a modified 
file, even though it had his changes in it.

Deleting the sym link and renaming the file back fixed the problem.
-- 
Michael Smith      | 61 394 257 560
Team Leader, Tools | 61 416 062 898
Thales Australia   |    S  37.83150
Richmond, Victoria |    E 144.99675
-----------------------------------
Confidentiality Notice: This e-mail may contain confidential and/or 
privileged information and is intended solely for the addressee(s) 
named. If you have received this information in error, or are advised 
that you have been posted this e-mail by accident, please notify the 
sender by return e-mail, do not redistribute it, delete the e-mail and 
keep no copies.



More information about the Mercurial mailing list