git import fails - symlink issues

Asked by Peter Bienstman on 2009-12-19

Git import fails for these two branches:

2009-12-19 11:40:24 INFO 52 bytes transferred |
2009-12-19 11:40:26 INFO Counting objects: 235, done. 0
2009-12-19 11:40:26 INFO finding revisions to fetch:generating index 0/235
2009-12-19 11:40:26 INFO finding revisions to fetch 1/136
2009-12-19 11:40:29 INFO
Traceback (most recent call last):
  File "/srv/", line 63, in <module>
  File "/srv/", line 58, in main
  File "/srv/", line 409, in run
  File "/srv/", line 526, in _doImport
    bazaar_tree.branch.pull(foreign_branch, overwrite=True)
  File "<string>", line 4, in pull_write_locked
  File "/home/pqm/for_rollouts/production/eggs/bzr-2.1.0b3-py2.5-linux-x86_64.egg/bzrlib/", line 949, in pull
  File "/srv/", line 416, in pull
  File "/srv/", line 379, in update_revisions
    interrepo.fetch_objects(determine_wants, self.source.mapping)
  File "/srv/", line 493, in fetch_objects
    store, recorded_wants, pb)
  File "/srv/", line 363, in import_git_objects
    allow_submodules=getattr(repo._format, "supports_tree_reference", False))
  File "/srv/", line 255, in import_git_tree
  File "/srv/", line 255, in import_git_tree
  File "/srv/", line 255, in import_git_tree
  File "/srv/", line 245, in import_git_tree
    tree = lookup_object(hexsha)
  File "/srv/", line 303, in lookup_object
    return target_git_object_retriever[sha]
  File "/srv/", line 267, in __getitem__
  File "/srv/", line 183, in _get_tree
  File "/srv/", line 411, in directory_to_tree
    hexsha = lookup_ie_sha1(ie)
  File "/srv/", line 182, in <lambda>
    lambda ie: self._get_ie_sha1(ie, inv, unusual_modes),
  File "/srv/", line 161, in _get_ie_sha1
    return self._get_ie_object_or_sha1(entry, inv, unusual_modes)[0]
  File "/srv/", line 158, in _get_ie_object_or_sha1
    raise AssertionError("unknown entry kind '%s'" % entry.kind)
AssertionError: unknown entry kind 'symlink'
Import failed:
Traceback (most recent call last):
Failure: twisted.internet.error.ProcessTerminated: A process has ended with a probable error condition: process ended with exit code 1.

Question information

English Edit question
Launchpad itself Edit question
No assignee Edit question
Solved by:
Martin Pool
Last query:
Last reply:

This is a bug in the upstream (bzr-git). It's fixed in the bzr-git trunk, but not integrated into Launchpad yet. I guess we'll definitely upgrade in the next rollout in January, but we can probably get the fix online faster if this is causing you problems.

Any idea when that rollout will be? At the moment it still fails...



Diogo Matsubara (matsubara) said : #3

Next rollout is scheduled to Wed, the 27th of January.

Best Martin Pool (mbp) said : #4

these branches now seem to be working

Thanks Martin Pool, that solved my question.