Comment 19 for bug 675014

Revision history for this message
Alexander Belchenko (bialix) wrote :

@Martin von Gagern: I found that such small change helps:

=== modified file 'tracbzr/backend.py'
--- tracbzr/backend.py 2010-04-10 17:56:06 +0000
+++ tracbzr/backend.py 2012-11-08 09:29:09 +0000
@@ -68,6 +68,7 @@
     osutils,
     revision,
     transport,
+ urlutils,
 )
 import bzrlib.api
 from bzrlib.revision import (
@@ -1337,7 +1338,7 @@

 def containing_branch(transport, path):
- child_transport = transport.clone(path)
+ child_transport = transport.clone(urlutils.escape(path))
     my_bzrdir, relpath = \
         bzrdir.BzrDir.open_containing_from_transport(child_transport)
     return my_bzrdir.open_branch(), relpath

Is it enough, what do you think? Will you accept this patch for merging to 0.3 branch?