Using version-info data with multi-branch packaging workflow

Ben Finney bignose+hates-spam at
Tue Sep 23 05:12:11 BST 2008

Ben Finney <bignose+hates-spam at> 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:

Traceback (most recent call last):
  File "bin/make-dist-tarball", line 25, in <module>
    workingtree = bzrlib.workingtree.WorkingTree.open_containing()[0]
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 325, in open_containing
    return control.open_workingtree(), relpath
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 1388, in open_workingtree
    return, _found=True)
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 2842, in open
    wt = self._open(a_bzrdir, self._open_control_files(a_bzrdir))
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 1377, in _open
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 1369, in open_branch
    format = self.find_branch_format()
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 1279, in find_branch_format
    return BranchFormat.find_format(self)
  File "/usr/lib/python2.5/site-packages/bzrlib/", line 842, in find_format
    raise errors.UnknownFormatError(format=format_string, kind='branch')
bzrlib.errors.UnknownFormatError: Unknown branch format: 'Bazaar-NG Loom branch format 6\n'

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:>.

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.

 \        “Don't fight forces, use them.” —Richard Buckminster Fuller, |
  `\                                                   _Shelter_, 1932 |
_o__)                                                                  |
Ben Finney

More information about the bazaar mailing list