You always can bridge to git from svn and mercurial. It is almost seamless, and after generating the git repository everything will work.
Another reason not to use sourcegraph is it’s proprietary (with some open source parts), unlike opengrok fully open source.