On Tue, Oct 02, 2012 at 10:50:26PM +0100, Jacobo de Vera wrote:
> On Tue, Oct 2, 2012 at 5:41 PM, Petr Sobotka <sobot...@gmail.com> wrote:
Moin,

> Hi, The -z option doesn't seem to be it:
> -z number
>         depth of scanning for repositories in directory structure
> relative to source root

Yepp - has not really something to do with symlinks.
  
> I still tried it, with no success, though. I could not find anything
> in the usage that refers to symlink other than the option to allow

look for accept(...) and acceptSymlink(...) in IndexDatabase.java ...

> specific symlinks, which made me think that by default they would not
> be followed, but it seems they are followed.

Haven't tried this, but looking at the code I think it might be the case. 
One problem is, that Java < 1.7 can't really check, whether a path is a
symlink. So workarounds (assumption, that symlinks are resolved in
file.getCanonical* and file.getAbsolute* isn't resolved) are used, which
usually work, but obviously don't need to (i.e. for a symlink the absolute
path could be the resolved path as well).
2nd) There are other code parts, which smell a little bit wrt. symlinks.
E.g. isLocal(...), getCanonicalPath(...), getPathRelativeToSourceRoot(...),
and the ones mentioned above...
  
> Any other suggestions?

Rough guess: isLocal(..) might be your problem ...
  
Have fun,
jel.
-- 
Otto-von-Guericke University     http://www.cs.uni-magdeburg.de/
Department of Computer Science   Geb. 29 R 027, Universitaetsplatz 2
39106 Magdeburg, Germany         Tel: +49 391 67 12768
_______________________________________________
opengrok-discuss mailing list
opengrok-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss

Reply via email to