When recursively adding a directory "test" which contains another
directory "sub" and a symlink "sub.link" pointing to "sub", "sub.link"
is reported with kind=file where I would expect to receive kind=symlink.
The problem can be reproduced by following code snippet, using quite
recent 1.9 binaries:
final File root = <path-to-a-test-working-copy>;
final File dir = new File(root, "test");
dir.mkdirs();
final File sub = new File(dir, "sub");
sub.mkdirs();
final File subLink = new File(dir, "sub.link");
Runtime.getRuntime().exec("ln -s " + sub.getAbsolutePath() +
" " + subLink.getAbsolutePath());
final ISVNClient client = new SVNClient();
// client.revert(dir.getAbsolutePath(), Depth.infinity,
// new ArrayList<String>());
client.notification2(new ClientNotifyCallback() {
@Override
public void onNotify(ClientNotifyInformation cni) {
System.out.println("[" + cni.getKind() + "] " + cni.getPath() +
" " + cni.getAction());
}
});
client.add(dir.getAbsolutePath(), Depth.infinity, false, false, false);
-Marc