hack a port to svn 1.7+