~gagern/bzr-svn/bug242321

« back to all changes in this revision

Viewing changes to format.py

  • Committer: Jelmer Vernooij
  • Date: 2008-06-17 22:31:19 UTC
  • Revision ID: jelmer@samba.org-20080617223119-ub4cxwjhnya05p5n
Cherrypick some changes from the cext branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import os
24
24
 
25
25
lazy_import(globals(), """
26
 
from bzrlib.plugins.svn import errors
27
 
from bzrlib.plugins.svn import remote
 
26
from bzrlib.plugins.svn import errors, remote
28
27
 
29
28
from bzrlib import errors as bzr_errors
30
29
""")
84
83
        """See BzrDir.initialize_on_transport()."""
85
84
        from transport import get_svn_ra_transport
86
85
        from bzrlib.transport.local import LocalTransport
87
 
        import svn.repos
 
86
        from svn import repos
88
87
 
89
88
        if not isinstance(transport, LocalTransport):
90
89
            raise NotImplementedError(self.initialize, 
92
91
                "non-local transports")
93
92
 
94
93
        local_path = transport._local_base.rstrip("/")
95
 
        svn.repos.create(local_path, '', '', None, None)
 
94
        repos.create(local_path, '', '', None, None)
96
95
        # All revision property changes
97
96
        revprop_hook = os.path.join(local_path, "hooks", "pre-revprop-change")
98
97
        open(revprop_hook, 'w').write("#!/bin/sh")