Rev 889: Use standard version for converting abspath to url. in file:///data/jelmer/bzr-svn/0.4.8/
Jelmer Vernooij
jelmer at samba.org
Tue Mar 11 17:15:30 GMT 2008
At file:///data/jelmer/bzr-svn/0.4.8/
------------------------------------------------------------
revno: 889
revision-id:jelmer at samba.org-20080311171528-oqce323k85phdglc
parent: jelmer at samba.org-20080311171435-c9e399woeir800ka
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4.8
timestamp: Tue 2008-03-11 18:15:28 +0100
message:
Use standard version for converting abspath to url.
modified:
tests/__init__.py __init__.py-20060508151940-e9f4d914801a2535
=== modified file 'tests/__init__.py'
--- a/tests/__init__.py 2008-01-31 23:04:12 +0000
+++ b/tests/__init__.py 2008-03-11 17:15:28 +0000
@@ -22,6 +22,7 @@
from bzrlib.bzrdir import BzrDir
from bzrlib.tests import TestCaseInTempDir, TestSkipped
from bzrlib.trace import mutter
+from bzrlib.urlutils import local_path_to_url
from bzrlib.workingtree import WorkingTree
import svn.repos, svn.wc
@@ -46,7 +47,6 @@
:return: Handle to the repository.
"""
abspath = os.path.join(self.test_dir, relpath)
- repos_url = "file://%s" % abspath
svn.repos.create(abspath, '', '', None, None)
@@ -59,7 +59,7 @@
open(revprop_hook, 'w').write("#!/bin/sh\n")
os.chmod(revprop_hook, os.stat(revprop_hook).st_mode | 0111)
- return repos_url
+ return local_path_to_url(abspath)
def make_remote_bzrdir(self, relpath):
"""Create a repository."""
More information about the bazaar-commits
mailing list