~bzr/ubuntu/intrepid/bzr-svn/bzr-ppa

« back to all changes in this revision

Viewing changes to tests/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2008-08-25 21:07:15 UTC
  • mfrom: (309.1.2 debian)
  • Revision ID: john@arbash-meinel.com-20080825210715-gjow5e72oo981g23
Merge in Jelmer's latest updates to bzr-svn

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
from bzrlib import osutils, urlutils
26
26
from bzrlib.bzrdir import BzrDir
27
 
from bzrlib.tests import TestCaseInTempDir, TestSkipped
 
27
from bzrlib.tests import TestCaseInTempDir
28
28
from bzrlib.trace import mutter
29
 
from bzrlib.urlutils import local_path_to_url
30
29
from bzrlib.workingtree import WorkingTree
31
30
 
32
31
from bzrlib.plugins.svn import properties, ra, repos
160
159
                open(revprop_hook, 'w').write("#!/bin/sh\n")
161
160
                os.chmod(revprop_hook, os.stat(revprop_hook).st_mode | 0111)
162
161
 
163
 
        return local_path_to_url(abspath)
 
162
        return urlutils.local_path_to_url(abspath)
164
163
 
165
164
    def make_local_bzrdir(self, repos_path, relpath):
166
165
        """Create a repository and checkout."""
174
173
    def make_checkout(self, repos_url, relpath):
175
174
        self.client_ctx.checkout(repos_url, relpath, "HEAD") 
176
175
 
177
 
    @staticmethod
178
 
    def open_checkout(url):
179
 
        return WorkingTree.open(url)
180
 
 
181
 
    @staticmethod
182
 
    def open_checkout_bzrdir(url):
183
 
        return BzrDir.open(url)
184
 
 
185
176
    def client_set_prop(self, path, name, value):
186
177
        if value is None:
187
178
            value = ""