36
37
prefix = config.get_option('user_prefix') or ''
37
38
# Note we could use LoggerheadConfig here if it didn't fail when a
38
39
# config option is not also a commandline option
42
46
' %(user)s with http_root_dir set to the base directory you want'
43
47
' to serve bazaar repositories from' %
44
48
{'user': pwd.getpwuid(os.geteuid()).pw_name})
47
52
app = BranchesFromTransportRoot(root_dir, config)
48
53
app = PrefixMiddleware(app, prefix=prefix)
49
54
app = HTTPExceptionHandler(app)