"The file id FOO is not present in the tree" on svn-import

Bug #186876 reported by Andrew Bennetts
2
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Undecided
Unassigned
Bazaar Subversion Plugin
Fix Released
Medium
Jelmer Vernooij

Bug Description

This command:

    bzr svn-import https://check.svn.sourceforge.net/svnroot/check check

fails with:

Initialising Subversion metadata cache in /home/andrew/.bazaar/svn-cache/64e312b2-a51f-0410-8e61-82d0ca0eb02a/cache-v3
bzr: ERROR: The file id "217@64e312b2-a51f-0410-8e61-82d0ca0eb02a:tags%2FR0_9_2:check%2Fdebian" is not present in the tree <Inventory object at a8bea6c, contents={'13@64e312b2-a51f-0410-8e61-82d0ca0eb02a:trunk:check%2Fdoc%2Fmoney%2Faclocal.m4': ...

(full error message snipped for brevity, I'm guessing it's not particularly interesting)

It takes nearly 10 minutes to reach this point. I think it has imported most of the revisions before hitting this error.

The traceback from .bzr.log is:

519.653 Traceback (most recent call last):
  File "/home/andrew/code/bzr/bzrlib/commands.py", line 836, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/andrew/code/bzr/bzrlib/commands.py", line 791, in run_bzr
    ret = run(*run_argv)
  File "/home/andrew/code/bzr/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/andrew/code/bzr/bzrlib/commands.py", line 801, in ignore_pipe
    result = func(*args, **kwargs)
  File "/home/andrew/.bazaar/plugins/svn/__init__.py", line 212, in run
    trees, all, filter_branch=filter_branch)
  File "/home/andrew/.bazaar/plugins/svn/convert.py", line 147, in convert_repository
    inter.fetch(branches=[source_repos.generate_revision_id(revnum, branch, str(source_repos.get_scheme())) for (branch, revnum) in existing_branches])
  File "/home/andrew/.bazaar/plugins/svn/fetch.py", line 714, in fetch
    self._fetch_switch(needed, pb, lhs_parent)
  File "/home/andrew/.bazaar/plugins/svn/fetch.py", line 671, in _fetch_switch
    reporter.finish_report(pool)
  File "/home/andrew/.bazaar/plugins/svn/errors.py", line 110, in convert
    return unbound(*args, **kwargs)
  File "/home/andrew/.bazaar/plugins/svn/transport.py", line 271, in finish_report
    self._baton, pool)
  File "/var/lib/python-support/python2.5/libsvn/ra.py", line 740, in svn_ra_reporter2_invoke_finish_report
    return apply(_ra.svn_ra_reporter2_invoke_finish_report, args)
  File "/home/andrew/.bazaar/plugins/svn/fetch.py", line 359, in open_file
    self.file_id = self._get_existing_id(new_parent_id, path)
  File "/home/andrew/.bazaar/plugins/svn/fetch.py", line 177, in _get_existing_id
    return self._get_old_id(parent_id, path)
  File "/home/andrew/.bazaar/plugins/svn/fetch.py", line 182, in _get_old_id
    return self.old_inventory[parent_id].children[urlutils.basename(old_path)].file_id
  File "/home/andrew/code/bzr/bzrlib/inventory.py", line 1145, in __getitem__
    raise errors.NoSuchId(self, file_id)

My bzr-svn version is current from http://people.samba.org/bzr/jelmer/bzr-svn/0.4/:

$ bzr revision-info
 855 <email address hidden>

Related branches

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 186876] [NEW] "The file id FOO is not present in the tree" on svn-import

> bzr svn-import https://check.svn.sourceforge.net/svnroot/check check
just reproduced here. Thanks for the bugreport

  status triaged
  importance medium
--

Jelmer Vernooij (jelmer)
Changed in bzr-svn:
importance: Undecided → Medium
status: New → Triaged
Jelmer Vernooij (jelmer)
Changed in bzr-svn:
assignee: nobody → jelmer
milestone: none → 0.4.7
status: Triaged → Fix Committed
Jelmer Vernooij (jelmer)
Changed in bzr-svn:
status: Fix Committed → Fix Released
Changed in bzr:
status: Fix Released → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.