/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to __init__.py

Use objects that more closely match GitPython, support creating new repositories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
"""A GIT branch and repository format implementation for bzr."""
20
20
 
21
 
try:
22
 
    import dulwich as git
23
 
except ImportError:
24
 
    import os, sys
25
 
    sys.path.insert(0, os.path.join(os.path.dirname(__file__), "dulwich"))
26
 
    import dulwich as git
27
21
from bzrlib import bzrdir
28
22
from bzrlib.foreign import ForeignVcs, VcsMappingRegistry, foreign_vcs_registry
29
 
from bzrlib.plugins.git.dir import LocalGitBzrDirFormat, RemoteGitBzrDirFormat
30
 
from bzrlib.transport import register_lazy_transport
 
23
from bzrlib.plugins.git.dir import GitBzrDirFormat
31
24
 
32
25
bzrdir.format_registry.register(
33
 
    'git', LocalGitBzrDirFormat,
 
26
    'git', GitBzrDirFormat,
34
27
    help='GIT repository.', 
35
28
    native=False, experimental=True,
36
29
    )
37
30
 
38
 
bzrdir.BzrDirFormat.register_control_format(LocalGitBzrDirFormat)
39
 
bzrdir.BzrDirFormat.register_control_format(RemoteGitBzrDirFormat)
40
 
 
41
 
register_lazy_transport("git://", 'bzrlib.plugins.git.remote',
42
 
                        'GitSmartTransport')
 
31
bzrdir.BzrDirFormat.register_control_format(GitBzrDirFormat)
43
32
 
44
33
 
45
34
class ForeignGit(ForeignVcs):