Help with bzr-git
John Arbash Meinel
john at arbash-meinel.com
Wed Mar 31 19:28:12 BST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Eric Berry wrote:
> Hello,
> I'm trying to branch off of a git repository at GitHub, but I'm
> getting an exception.
> [quote]
> [535] bzr branch git://github.com/eHarmony/jSelected.git
> <http://github.com/eHarmony/jSelected.git> jSelected
> bzr: ERROR: exceptions.KeyError:
> '40825 at bb5c14d6-0f0e-0410-b6e6-ef5a72c3f3ed:genesis%2Ftrunk%2Feh20'
>
>
> Traceback (most recent call last):
> File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 853,
> in exception_to_return_code
> return the_callable(*args, **kwargs)
> File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line
> 1055, in run_bzr
> ret = run(*run_argv)
> File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 661,
> in run_argv_aliases
> return self.run_direct(**all_cmd_args)
> File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 665,
> in run_direct
> return self._operation.run_simple(*args, **kwargs)
> File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 122,
> in run_simple
> self.cleanups, self.func, *args, **kwargs)
> File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 156,
> in _do_with_cleanups
> result = func(*args, **kwargs)
> File "/Library/Python/2.6/site-packages/bzrlib/builtins.py", line
> 1232, in run
> source_branch=br_from)
> File "/Library/Python/2.6/site-packages/bzrlib/bzrdir.py", line 1182,
> in sprout
> result_repo.fetch(source_repository, revision_id=revision_id)
> File "/Library/Python/2.6/site-packages/bzrlib/repository.py", line
> 1704, in fetch
> find_ghosts=find_ghosts, fetch_spec=fetch_spec)
> File "/Users/eberry/.bazaar/plugins/git/fetch.py", line 436, in fetch
> find_ghosts=find_ghosts, mapping=mapping, fetch_spec=fetch_spec)
> File "/Users/eberry/.bazaar/plugins/git/fetch.py", line 461, in fetch_refs
> (pack_hint, _) = self.fetch_objects(determine_wants, mapping, pb)
> File "/Users/eberry/.bazaar/plugins/git/fetch.py", line 503, in
> fetch_objects
> [store._lookup_revision_sha1(head) for head in heads])
> File "/Users/eberry/.bazaar/plugins/git/object_store.py", line 381, in
> _lookup_revision_sha1
> self._update_sha_map(revid)
> File "/Users/eberry/.bazaar/plugins/git/object_store.py", line 255, in
> _update_sha_map
> self._update_sha_map_revision(revid)
> File "/Users/eberry/.bazaar/plugins/git/object_store.py", line 310, in
> _update_sha_map_revision
> for path, obj in self._revision_to_objects(rev, inv):
> File "/Users/eberry/.bazaar/plugins/git/object_store.py", line 287, in
> _revision_to_objects
> self.repository.iter_files_bytes, has_ghost_parents):
> File "/Users/eberry/.bazaar/plugins/git/object_store.py", line 172, in
> _inventory_to_objects
> ie.file_id)
> File "/Users/eberry/.bazaar/plugins/git/shamap.py", line 307, in
> lookup_tree
> raise KeyError(fileid)
> KeyError:
> '40825 at bb5c14d6-0f0e-0410-b6e6-ef5a72c3f3ed:genesis%2Ftrunk%2Feh20'
>
> bzr 2.1.0 on python 2.6.1 (Darwin-10.3.0-i386-64bit)
> arguments: ['/usr/local/bin/bzr', 'branch',
> 'git://github.com/eHarmony/jSelected.git
> <http://github.com/eHarmony/jSelected.git>', 'jSelected']
> encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
> plugins:
> bisect /Users/eberry/.bazaar/plugins/bisect [1.1.0.pre.0]
> bzrtools /Users/eberry/.bazaar/plugins/bzrtools [2.1.0]
> email
> /Library/Python/2.6/site-packages/bzrlib/plugins/email [unknown]
> explorer /Users/eberry/.bazaar/plugins/explorer [1.1.0dev]
> extmerge /Users/eberry/.bazaar/plugins/extmerge [unknown]
> git /Users/eberry/.bazaar/plugins/git [0.5.0]
> keychain
> /Library/Python/2.6/site-packages/bzrlib/plugins/keychain [0.1.0]
> launchpad
> /Library/Python/2.6/site-packages/bzrlib/plugins/launchpad [2.1.0]
> loom
> /Library/Python/2.6/site-packages/bzrlib/plugins/loom [1.4.0dev]
> netrc_credential_store
> /Library/Python/2.6/site-packages/bzrlib/plugins/netrc_credential_store
> [2.1.0]
> news_merge
> /Library/Python/2.6/site-packages/bzrlib/plugins/news_merge [2.1.0]
> qbzr
> /Library/Python/2.6/site-packages/bzrlib/plugins/qbzr [0.18.1]
> rebase
> /Library/Python/2.6/site-packages/bzrlib/plugins/rebase [0.5.5]
> svn /Users/eberry/.bazaar/plugins/svn [1.0.2dev]
> upload
> /Library/Python/2.6/site-packages/bzrlib/plugins/upload [1.0.0dev]
> xmloutput /Users/eberry/.bazaar/plugins/xmloutput [0.8.7.dev]
>
> *** Bazaar has encountered an internal error. This probably indicates a
> bug in Bazaar. You can help us fix it by filing a bug report at
> https://bugs.launchpad.net/bzr/+filebug
> including this traceback and a description of the problem.
> [/quote]
>
> I'm not sure if I've installed Dulwich correctly. I downloaded the
> tar.gz file, and installed it using "sudo python setup.py install".
>
> I'm not sure what I'm doing wrong.
>
> Thanks,
> Eric
>
Well, this looks like an interaction of bzr-git with bzr-svn. I don't
know the specifics, but:
40825 at bb5c14d6-0f0e-0410-b6e6-ef5a72c3f3ed:genesis%2Ftrunk%2Feh20
Is definitely a bzr-svn identifier.
However, since it is looking in the sha map, maybe you pulled data from
bzr-svn into bzr, and then are trying to push that into git using bzr-git?
I certainly don't have any particular clue why bzr-git wouldn't be able
to find a given revision in its shamap cache.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkuzlDwACgkQJdeBCYSNAAMxtwCeNtIrvoaCG/kWoiVR5GbVta6U
4z4An10ZHLNVj/h65nzLYnRuBJ7An3vu
=Xuxg
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list