[darcs-devel] [issue2275] Darcs follows symbolic links instead of properly ignoring them

Ben Franksen bugs at darcs.net
Sun Mar 26 08:10:30 UTC 2017


Ben Franksen <ben.franksen at online.de> added the comment:

I think it is not possible to support symlinks properly in Darcs without
changing the patch format. This is currently not practical with the
limited manpower and considering that there are other problems with the
current patch format that we might want to resolve first.

What else can we do? At the end of your last message (about similarity
to --case-ok) you seem to suggest that giving users the choice is the
best way. I am now thinking that --resolve-symlinks is a pretty bad idea
and instead we should rather have --ignore-symlinks (and still give a
warning if we see a link that targets a tracked file or directory), with
 --refuse-symlinks being the default (effectively turning the warning to
an error). The warning is important: consider the case where I remove a
file and replace it with a symlink to another file. With the regular
file system commands it looks as if I had changed the file, but Darcs
must report it as deleted (with --ignore-symlinks): this is too
surprising for my taste without a hint to the user.

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue2275>
__________________________________


More information about the darcs-devel mailing list