/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

Cope with newer *system* dulwich

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
"""A GIT branch and repository format implementation for bzr."""
22
22
 
23
23
from bzrlib import bzrdir
24
 
from bzrlib.foreign import foreign_vcs_registry
 
24
from bzrlib.foreign import ForeignVcs, VcsMappingRegistry, foreign_vcs_registry
25
25
from bzrlib.transport import register_lazy_transport
26
26
from bzrlib.commands import Command, register_command
27
27
from bzrlib.option import Option
53
53
register_lazy_transport("git://", 'bzrlib.plugins.git.remote',
54
54
                        'GitSmartTransport')
55
55
 
56
 
foreign_vcs_registry.register_lazy("git", 
57
 
                        "bzrlib.plugins.git.mapping", 
58
 
                        "foreign_git",
59
 
                        "Stupid content tracker")
 
56
 
 
57
class ForeignGit(ForeignVcs):
 
58
    """Foreign Git."""
 
59
 
 
60
 
 
61
git_mapping_registry = VcsMappingRegistry()
 
62
git_mapping_registry.register_lazy('git-experimental', "bzrlib.plugins.git.mapping",
 
63
                                   "BzrGitMappingExperimental")
 
64
foreign_vcs_registry.register("git", ForeignGit(git_mapping_registry), 
 
65
                                      "Stupid content tracker")
60
66
 
61
67
 
62
68
class cmd_git_serve(Command):