[I have cut-n-pasted Dan Price's email] >> We have our source code in Telelogic's Synergy (code managment tool) and it >> uses symbolic links and currently OpenGrok ignores these. Is there a plan to >> support symbolic links? >> >> -- prasad
>[I replied a couple of days ago but I think the spam filters >ate my post :( Resending...] >I've certainly been doing some thinking about symlinks but I'm >not really a core contributor so I don't know if there are "plans". >Since I don't have access to this other tool, can you be a little more >precise about the exact behavior you would like to see? And maybe >give a real world example? >One difficulty with symlinks is that they may point you off into >weird places. Imagine if your source base accidentally had a >symlink to /home-- if opengrok followed that, we'd have a problem. >You could also have symlinks which create loops, and so that means >doing some looping detection. Some of that may be there already-- >I'm not sure. >So: > - Follow symlinks if they point "outside" the source base? > - Follow symlinks if they point "inside" the source base? > (and then reindex the content when you find it again later? > or not?) > - Detect loops? >My specific interest with symlinks is that I have a big index I want >to build out of multiple source bases, and so I want to have some top >level symlinks which point off to the various pieces. So I'd like to >teach opengrok a rule like "after you follow <N> symlinks, stop >following them." > -dp >-- >Daniel Price - Solaris Kernel Engineering - dp at eng.sun.com - >blogs.sun.com/dp Dan: [I am replying to your email directly on the forums web page] Our symbolic links in Telelogic's Synergy look like this: foobar.c -> /vol_ccmdatabases/development_db/st_root/cache/source/#55/12889 so they are outside our source base but they don't point off to someother symlink. You do raise some concerns about loops and depth of traversal. Where is the source code for opengrok? (maybe I have not looked hard enough;-) -- prasad This message posted from opensolaris.org