Accessing configuration when hosting via smart server...

Andrew Bennetts andrew.bennetts at canonical.com
Tue Apr 13 03:56:53 BST 2010


John Szakmeister wrote:
> So, I've been diligently trying to setup Bazaar hosting at our company
> site that meets our security and access control requirements, and it
> seems I keep hitting road blocks every step of the way.  The current
> one is that plugins, like bzr-email, don't work because the smart
> server is setting up a "soft chroot".  The problem is that the url for

It sounds like the bzr-hookless-email suggestion has solved this for
you.  In case you're curious, the unpredictable server-internal URL is
<https://bugs.launchpad.net/bzr/+bug/270267>: “hooks fired by smart
server can't easily obtain absolute path to branch on the server.”

Although even if branch.bzrdir.root_transport.local_abspath() or
.external_url() did the right thing, that is still a bit in convenient
for plugins, which should be able to just do branch.get_config() and
expect the relevant parts of locations.conf to automatically apply
without any special fiddling.

Thanks for the reminder that this is a problem, I've bumped up the
priority on that bug.

-Andrew.




More information about the bazaar mailing list