work around another assert in the subversion bindings. bzr-svn-0.4.2
authorJelmer Vernooij <jelmer@samba.org>
Sun, 9 Sep 2007 01:13:07 +0000 (03:13 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 9 Sep 2007 01:13:07 +0000 (03:13 +0200)
transport.py

index 14b9c11e568ecc7fe116e84f966ce02c7c7b68e3..f6dc91335c9baece790fbf121af82cf48a321c9c 100644 (file)
@@ -354,11 +354,13 @@ class SvnRaTransport(Transport):
             return svn.ra.get_dir(self._ra, path, revnum)
 
     def _request_path(self, relpath):
-        if self._backing_url != self.svn_url:
-            relpath = urlutils.join(
-                    urlutils.relative_url(self._backing_url, self.svn_url),
-                    relpath)
-        return relpath
+        if self._backing_url == self.svn_url:
+            return relpath
+        newrelpath = urlutils.join(
+                urlutils.relative_url(self._backing_url, self.svn_url),
+                relpath).rstrip("/")
+        self.mutter('request path %r -> %r' % (relpath, newrelpath))
+        return newrelpath
 
     @convert_svn_error
     def list_dir(self, relpath):