baz-import explosion
Aaron Bentley
aaron.bentley at utoronto.ca
Thu Nov 10 13:31:50 GMT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jamie Wilkinson wrote:
| Hi!
|
| After having fiddled with bzr on and off, I decided to import some
code from
| baz; I got bzrtools-0.6.1 and unpacked it into ~/.bazaar/plugins; i'm
| running bzr.dev last updated sometime last week (bzr log tells me it's
revno
| 1384).
|
| I assume I can run it from a checkout of a baz branch, and tell it the
name
| of a bzr branch to import into (based on the Notbrancherror I got when I
| didn't bzr init the target -- I was kinda hoping it'd create the
directory I
| specified and init it for me :)
It does. That's actually what the problem is. On the first run, you
must specify the name of a directory that does not exist:
bzr baz-import $NEW_DIR foo at bar--lala/category--branch--version
| Oh, I also am using a brand spanking new checkout of pybaz, and
modified the
| top of bzr_import.py in bzrtools to make sure it's in the library path.
All you have to do is stick a symlink to pybaz in your bzrtools
directory. I ensure the bzrtools directory is in your path in __init__.py.
|
| I get this message:
|
| dawn% bzr baz-import ../fengshui.bzr
| bzr: ERROR: 'NoneType' object has no attribute 'version'
| command: '/home/jaq/src/bzr/bzr.dev/bzr' 'baz-import' '../fengshui.bzr'
| pwd: u'/home/jaq/src/umbrella/fengshui'
| error: exceptions.AttributeError
| at /home/jaq/.bazaar/plugins/bzrtools-0.6.1/baz_import.py line 229,
in get_remaining_revisions()
| see ~/.bzr.log for debug information
The only candidate I can see for explaining this is
227: version = last_patch.version
The codepath you tripped over assumes that if the target directory
exists, it is the location of a previous import, not a freshly-initted tree.
| Also, I'd like to just check out bzrtools and symlink my branch
| into plugins/ but I couldn't find the branch URL when I went looking to
| download it.
On http://bazaar.canonical.com/BzrTools, it says "The bzr branch for
current bzr is at: http://panoramicfeedback.com/opensource/bzr/bzrtools"
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDc0vF0F+nu1YWqI0RApSPAJ4keW6TsO4z2WedFWaFiiMjPEf0VwCcDdvb
9eJn/ZaCrk9rWVVsqe7jKb0=
=/dc+
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list