~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/bzrdir_implementations/test_bzrdir.py

  • Committer: Robert Collins
  • Date: 2006-04-18 22:41:16 UTC
  • mto: (1711.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1671.
  • Revision ID: robertc@robertcollins.net-20060418224116-9b723440fa56e404
 * 'Metadir' is now the default disk format. This improves behaviour in
   SFTP using circumstances and allows binding and rebinding and easier
   use of repositories. (Robert Collins, Aaron Bentley).

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
            self.bzrdir = self.make_bzrdir(None)
60
60
        return self.bzrdir
61
61
 
62
 
    def make_bzrdir(self, relpath):
63
 
        try:
64
 
            url = self.get_url(relpath)
65
 
            segments = url.split('/')
66
 
            if segments and segments[-1] not in ('', '.'):
67
 
                parent = '/'.join(segments[:-1])
68
 
                t = get_transport(parent)
69
 
                try:
70
 
                    t.mkdir(segments[-1])
71
 
                except FileExists:
72
 
                    pass
73
 
            return self.bzrdir_format.initialize(url)
74
 
        except UninitializableFormat:
75
 
            raise TestSkipped("Format %s is not initializable.")
 
62
    def make_bzrdir(self, relpath, format=None):
 
63
        return super(TestCaseWithBzrDir, self).make_bzrdir(
 
64
            relpath, format=self.bzrdir_format)
 
65
 
76
66
 
77
67
 
78
68
class TestBzrDir(TestCaseWithBzrDir):