/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

Support 'bzr serve --git'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
241
241
foreign_vcs_registry.register_lazy("git", 
242
242
    "bzrlib.plugins.git.mapping", "foreign_git", "Stupid content tracker")
243
243
 
244
 
plugin_cmds.register_lazy("cmd_git_serve", [], "bzrlib.plugins.git.commands")
245
244
plugin_cmds.register_lazy("cmd_git_import", [], "bzrlib.plugins.git.commands")
246
245
plugin_cmds.register_lazy("cmd_git_object", ["git-objects", "git-cat"], 
247
246
    "bzrlib.plugins.git.commands")
256
255
if rio_hooks is not None:
257
256
    rio_hooks.install_named_hook('revision', update_stanza, None)
258
257
 
 
258
 
 
259
try:
 
260
    from bzrlib.transport import transport_server_registry
 
261
except ImportError:
 
262
    pass
 
263
else:
 
264
    transport_server_registry.register_lazy('git',
 
265
        'bzrlib.plugins.git.server', 
 
266
        'serve_git',
 
267
        'Git Smart server protocol over TCP. (default port: 9418)')
 
268
 
 
269
 
259
270
def get_rich_root_format(stacked=False):
260
271
    if stacked:
261
272
        return bzrdir.format_registry.make_bzrdir("1.9-rich-root")