baz-import explosion

Jamie Wilkinson jaq at spacepants.org
Thu Nov 10 05:29:46 GMT 2005


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

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.

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

which contains:

Traceback (most recent call last):
  File "/home/jaq/src/bzr/bzr.dev/bzrlib/commands.py", line 531, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/jaq/src/bzr/bzr.dev/bzrlib/commands.py", line 506, in run_bzr
    ret = cmd_obj.run_argv(argv)
  File "/home/jaq/src/bzr/bzr.dev/bzrlib/commands.py", line 225, in run_argv
    return self.run(**all_cmd_args)
  File "/home/jaq/.bazaar/plugins/bzrtools-0.6.1/baz_import.py", line 568, in run
    import_version(to_location, from_branch)
  File "/home/jaq/.bazaar/plugins/bzrtools-0.6.1/baz_import.py", line 288, in import_version
    ancestors, old_revno = get_remaining_revisions(output_dir, version)
  File "/home/jaq/.bazaar/plugins/bzrtools-0.6.1/baz_import.py", line 229, in get_remaining_revisions
    version = last_patch.version
AttributeError: 'NoneType' object has no attribute 'version'

Any ideas? :)

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.




More information about the bazaar mailing list