Using version-info data with multi-branch packaging workflow

John Arbash Meinel john at arbash-meinel.com
Tue Sep 23 15:31:02 BST 2008


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

Ben Finney wrote:
> Ben Finney <bignose+hates-spam at benfinney.id.au> writes:
> 
>> So my current implementation is a 'make-dist-tarball' written in
>> Python and making use of 'bzrlib'. This program gets invoked from
>> the 'dist' target in the make rules.
> 
> Today I did 'loomify' on the branch, and this 'make-dist-tarball'
> stopped working:

...

> What should I be using instead of
> 'bzrlib.workingtree.WorkingTree.open_containing()' so that I can get
> the containing directory for the branch, no matter what format the
> branch is currently in?
> 
>> The branch, in case anyone's interested. is online at
>> <URL:http://vcs.whitetree.org/bzr/public/gracie/gracie.devel/>.
> 
> I'd appreciate anyone looking at the 'bin/make-dist-tarball' in that
> branch and letting me know how I could make it more robust in the face
> of variables like this.
> 

You just need to add

from bzrlib import plugin
plugin.load_plugins()

The 'loom' format is provided by a plugin, so you have to have plugins
loaded before bzr can recognize the format.

By default, bzrlib doesn't load plugins unless requested (it is how we
handle "bzr XXX --no-plugins", etc.)

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEUEARECAAYFAkjY/aYACgkQJdeBCYSNAAMTUQCcDrWvm8pDP1a1zuLROAPUbHR/
RAsAli9WH7yOO3etIIksY/RQxnJLkx4=
=vRDc
-----END PGP SIGNATURE-----



More information about the bazaar mailing list