Support for SVN repository on a UNC path on Windows
|Reported by:||Owned by:|
|Severity:||normal||Keywords:||svn patch needfixup|
Description (last modified by )
While setting up a Trac installation a year ago, I ran into a problem where my SVN repository was stored on a UNC accessible path on a Windows-based Apache system. In other words, I was running Trac on Apache for Windows, with the python module for Apache. Our SVN repository was stored on a separate network drive and only accessible via a UNC path.
At the time I was using Trac 0.11.x (not sure of the revision, and I no longer operate that system).
The problem is due to SubversionRepository
__init__ not handling the UNC slashes properly. When the path is fixed by converting the '\'\' to '\' the UNC slashes were being transformed to just '\' instead of staying '\'\'. I corrected this by adding splitunc() call before the replace and only performing the replace on the non-UNC portion of the path.
I've attached a diff patch making the similar change to the latest version from the 0.12 trunk, as well as the original modified version from my 0.11 installation.