import svnx source code, with minor bugfixes