/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

Implement network name.

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
    def is_supported(self):
105
105
        return True
106
106
 
 
107
    def network_name(self):
 
108
        return "git"
 
109
 
107
110
 
108
111
class LocalGitBzrDirFormat(GitBzrDirFormat):
109
112
    """The .git directory control format."""
267
270
        'Git Smart server protocol over TCP. (default port: 9418)')
268
271
 
269
272
 
 
273
from bzrlib.repository import network_format_registry as repository_network_format_registry
 
274
repository_network_format_registry.register_lazy('git', 
 
275
    'bzrlib.plugins.git.repository', 'GitRepositoryFormat')
 
276
 
 
277
from bzrlib.bzrdir import network_format_registry as bzrdir_network_format_registry
 
278
bzrdir_network_format_registry.register('git', GitBzrDirFormat)
 
279
 
 
280
 
270
281
def get_rich_root_format(stacked=False):
271
282
    if stacked:
272
283
        return bzrdir.format_registry.make_bzrdir("1.9-rich-root")