post_commit hook write a file?
John Arbash Meinel
john at arbash-meinel.com
Mon May 23 12:21:27 UTC 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 5/23/2011 12:25 PM, Chris Hecker wrote:
>
> Hmm, spoke too soon...on a push it gives this:
>
> bzr: ERROR: exceptions.AttributeError: 'module' object has no attribute
> 'NotLocalURL'
>
> Not sure why it'd get called when I'm pushing, since that won't change
> the branch tip, will it?
>
> Chris
pushing changes the *remote* branch tip. Which is why we are trapping
the exception.
The reason it is failing is because URL is not capitalized in the exception.
It is:
except errors.NotLocalUrl:
The whole reason we are trapping that is because branch tips change
remotely when you update them. So it triggers the hook.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk3aUUcACgkQJdeBCYSNAAPvkgCeOekAfGEemTyflPViRiFF7tjL
GMkAn14a85ErRQbu2sIGcaajS40SLX5p
=j9fI
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list