import git (once svn) repository from googlecode

Asked by Dominique Lasserre on 2011-10-12

I want to import a git repository from Google Code. But it fails with :

2011-10-11 16:25:12 INFO Starting job.
2011-10-11 16:25:12 INFO Getting exising bzr branch from central store.
2011-10-11 16:25:13 INFO [chan bzr SocketAsChannelAdapter] Opened sftp connection (server version 3)
2011-10-11 16:25:13 INFO 35 bytes transferred
2011-10-11 16:25:13 INFO [chan bzr SocketAsChannelAdapter] Opened sftp connection (server version 3)
2011-10-11 16:25:14 INFO Importing branch.
2011-10-11 16:25:21 INFO finding revisions to fetch 0
2011-10-11 16:25:22 INFO finding revisions to fetch:generating index 0/1918
2011-10-11 16:25:23 INFO finding revisions to fetch 1
2011-10-11 16:25:23 INFO
Traceback (most recent call last):
  File "/srv/", line 98, in <module>
  File "/srv/", line 93, in main
  File "/srv/", line 550, in run
    return self._doImport()
  File "/srv/", line 740, in _doImport
  File "/srv/", line 666, in fetch
    self.fetch_objects(stop_revision, fetch_tags=fetch_tags, limit=limit)
  File "/srv/", line 689, in fetch_objects
    determine_wants, self.source.mapping, limit=limit)
  File "/srv/", line 676, in fetch_objects
  File "/srv/", line 491, in import_git_objects
    target_git_object_retriever, trees_cache)
  File "/srv/", line 370, in import_git_commit
    parent_trees = trees_cache.revision_trees(rev.parent_ids)
  File "/srv/", line 112, in revision_trees
    return list(self.iter_revision_trees(revids))
  File "/srv/", line 106, in iter_revision_trees
    for tree in self.repository.revision_trees(todo):
  File "/srv/", line 1794, in revision_trees
    for inv in inventories:
  File "/srv/", line 981, in _iter_inventories
    raise errors.NoSuchRevision(self, record.key)
bzrlib.errors.NoSuchRevision: CHKInventoryRepository('file:///srv/') has no revision ('git-v1:a416d1fb4662544f6bac0bbc528b5dc8d1f39f87',)
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.

See also for branch site. Actually launchpad fetches from "" but "" results same error.

Perhaps it is important that this git repo was a svn repo originally.

How can I prevent this error and achieve an successful import? Thanks in advance.

Question information

English Edit question
Bazaar Git Plugin Edit question
Jelmer Vernooij Edit question
Last query:
Last reply:
Jelmer Vernooij (jelmer) said : #1

Sorry for taking this long to get back to you. I have tried to reproduce the issue locally, but the branch imports just fine here.

Have you tried removing the branch and creating it again from scratch?

Dominique Lasserre (lasall) said : #2

Thank you for answering this question. I am glad that you could import this branch. But unfortunately it is not working yet. What do you mean with "creating from scratch"?

I have tried to import this branch (from gcode) to a private one ( But the error log is quite similar.

Jelmer Vernooij (jelmer) said : #3

It looks like this is some sort of bug in our git importer; I've filed one (should be linked to this question).

Since I can't reproduce it locally, I hope that the newer version of bzr-git that is due to be deployed on Launchpad will fix the issue.

Dr. Amr Osman (dr3mro) said : #4

I am also affected plz fix

pataquets (pataquets) said : #5


Jelmer Vernooij (jelmer) said : #6

Responding here doesn't help. Please follow up on the bug report.

Can you help with this problem?

Provide an answer of your own, or ask Dominique Lasserre for more information if necessary.

To post a message you must log in.