Using server side hook to check files changed

John Arbash Meinel john at arbash-meinel.com
Mon Oct 29 15:56:34 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/29/2012 04:27 PM, Stuart Moore wrote:
> 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
> 

Probably:

repository.bzrdir.control_url

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCOpzAACgkQJdeBCYSNAAMpGQCgw05lbTcMPWCZ4zv4a5dZDn8o
YEcAnjVUP5lO1wkCDRna6CHAcxqIk61F
=oJnu
-----END PGP SIGNATURE-----



More information about the bazaar mailing list