Using server side hook to check files changed

Stuart Moore stuart.moore+bzr at spektrix.com
Mon Oct 29 15:27:57 UTC 2012


On 29 October 2012 15:20, Aaron Bentley <aaron at aaronbentley.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 12-10-29 03:51 PM, Stuart Moore wrote:
> > The last thing I'm trying to do is get the repository's path (we
> > have more than one repository on the sever where this is being
> > deployed, and it'd be good to know which the plugin was operating
> > in). I can't see any obvious methods on the Repository object
> > (which I can get from params.branch.repository). So how do I get
> > the repository's path?
>
> bzr uses URLs to represent locations of branches, repositories, etc.
> Repository.control_url will give you the URL.  You can convert that
> that to a path with bzrlib.urlutils.local_path_from_url
>
>
I don't seem to be able to call repository.control_url - it seems to be
part of ControlComponent; the object I have is a CHKInventoryRepository
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/bazaar/attachments/20121029/838e37c3/attachment.html>


More information about the bazaar mailing list