baz-import explosion
John A Meinel
john at arbash-meinel.com
Thu Nov 10 07:33:15 GMT 2005
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 :)
I believe you have this incorrect. I believe the standard method is to do:
bzr baz-import fengshui.bzr archive at someplace.com/feng--shui--0.1
I don't use it much, but I do believe that it expects you to specify the
archive/branch name, not just be inside that directory.
You can always try:
bzr baz-import --help
>
> 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:
Obviously some of these error messages need to be cleaned up. You
shouldn't be getting AttributeErrors, it just means we failed to check
some precondition properly.
John
=:->
>
> 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.
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051110/4919edbd/attachment.pgp
More information about the bazaar
mailing list