[darcs-users] symbolic links

Albert Reiner areiner at tph.tuwien.ac.at
Sat Dec 15 15:18:46 UTC 2007


I am quite sure that symbolic links used to work fine with darcs.
Recently, however, I have been encountering strange behavior where
darcs always wanted to remove files from the repository that I never
requested be removed.  Looking into this, it seems to be related to
this sorry behavior:

,----
| $ touch ../a
| $ ln -s ../a bar
| $ darcs add bar
| Sorry, file bar is a symbolic link, which is unsupported by darcs.
| 
| darcs failed:  No files were added
| $ darcs --version
| 1.0.7 (release)
`----

How can I get darcs to treat symbolic links transparently, i.e., as
referring to the pointed-to file?  `darcs help add` does not seem to
give any pertinent information.  Unless I have overlooked anything, I
would suggest some general option to --dereference-symbolic-links that
I can stick into my preferences file.

At any rate, automatically flagging items for removal from the
repository seems an extremely unfortunate design decision, especially
if the behavior I want and is likely to be expected by many users was
present in earlier versions.

Best regards,

Albert.



More information about the darcs-users mailing list