Using server side hook to check files changed
Aaron Bentley
aaron at aaronbentley.com
Mon Oct 29 15:20:02 UTC 2012
-----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
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
iEYEARECAAYFAlCOnp4ACgkQ0F+nu1YWqI2PdACeMHBXGF9I0Yc0GfovIHMFq3Zz
kOwAn1LGbmce3OAZd39X+2+SvJxY4tcY
=dSlu
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list