Rev 2091: Fix relative URLs when the root is a URL. in http://people.samba.org/bzr/jelmer/bzr-svn/0.5
Jelmer Vernooij
jelmer at samba.org
Sat Nov 29 01:53:40 GMT 2008
At http://people.samba.org/bzr/jelmer/bzr-svn/0.5
------------------------------------------------------------
revno: 2091
revision-id: jelmer at samba.org-20081129015336-v5ub2gqxaztzpfzr
parent: jelmer at samba.org-20081128230338-8eclegc6uf3seubp
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.5
timestamp: Sat 2008-11-29 02:53:36 +0100
message:
Fix relative URLs when the root is a URL.
modified:
__init__.py __init__.py-20051008155114-eae558e6cf149e1d
=== modified file '__init__.py'
--- a/__init__.py 2008-11-25 03:23:58 +0000
+++ b/__init__.py 2008-11-29 01:53:36 +0000
@@ -232,7 +232,8 @@
raise BzrCommandError("Path inside repository specified "
"and --prefix specified")
from_repos = from_dir.find_repository()
- prefix = urlutils.relative_url(from_repos.base, from_location)
+ assert from_location.startswith(from_repos.base)
+ prefix = from_location[len(from_repos.base):].strip("/")
prefix = prefix.encode("utf-8")
if until is None:
More information about the bazaar-commits
mailing list