Regarding the comment about serve-branches being not really maintained... and that the plugin is the recommended way, I worry a bit about the plugin... as it contains code that might assert --allow-writes behind my back:
$ cd /path/to/python2.7/site-packages/bzrlib/plugins/loggerhead
$ grep --context=3 readonly __init__.py
if port is None:
port = DEFAULT_PORT
argv = ['--host', host, '--port', str(port), '--', transport.base]
if not transport.is_readonly(): argv.insert(0, '--allow-writes')
config = LoggerheadConfig(argv) setup_logging(config)
-- if allow_writes: transport = get_transport(path) else: transport = get_transport('readonly+' + path) serve_http(transport, host, port) else: super(cmd_serve, self).run(*args, **kw)
Regarding the comment about serve-branches being not really maintained... and that the plugin is the recommended way, I worry a bit about the plugin... as it contains code that might assert --allow-writes behind my back:
$ cd /path/to/ python2. 7/site- packages/ bzrlib/ plugins/ loggerhead is_readonly( ):
argv. insert( 0, '--allow-writes') g(argv)
setup_ logging( config)
if allow_writes:
transport = get_transport(path)
else:
transport = get_transport( 'readonly+ ' + path)
serve_ http(transport, host, port)
else:
super( cmd_serve, self).run(*args, **kw)
$ grep --context=3 readonly __init__.py
if port is None:
port = DEFAULT_PORT
argv = ['--host', host, '--port', str(port), '--', transport.base]
if not transport.
config = LoggerheadConfi
--