Public bug reported:

Binary package hint: bzr-svn

"bzr dpush <svn url>" fails with this traceback:


exarkun@boson:~/Projects/Twisted/branches/bzr.dns-comp-loop-5064$ bzr dpush 
svn+ssh://svn.twistedmatrix.com/svn/Twisted/branches/dns-comp-loop-5064
bzr: ERROR: exceptions.KeyError: 'No such TDB entry'

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/bzrlib/commands.py", line 926, in 
exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/bzrlib/commands.py", line 1126, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/pymodules/python2.6/bzrlib/commands.py", line 691, in 
run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/pymodules/python2.6/bzrlib/commands.py", line 713, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/pymodules/python2.6/bzrlib/cleanup.py", line 165, in 
_do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/bzrlib/foreign.py", line 319, in run
    push_result = source_branch.lossy_push(target_branch)
  File "/usr/lib/pymodules/python2.6/bzrlib/branch.py", line 1116, in lossy_push
    return lossy_push(stop_revision)
  File "/home/exarkun/.bazaar/plugins/svn/branch.py", line 993, in lossy_push
    result.revidmap = self._update_revisions_lossy(stop_revision)
  File "/home/exarkun/.bazaar/plugins/svn/branch.py", line 970, in 
_update_revisions_lossy
    push_metadata=False, base_revid=base_revid)
  File "/home/exarkun/.bazaar/plugins/svn/push.py", line 248, in push
    override_svn_revprops=target_config.get_override_svn_revprops())
  File "/home/exarkun/.bazaar/plugins/svn/push.py", line 162, in 
push_revision_tree
    revid = builder.commit(rev.message)
  File "/home/exarkun/.bazaar/plugins/svn/errors.py", line 144, in convert
    return unbound(*args, **kwargs)
  File "/home/exarkun/.bazaar/plugins/svn/commit.py", line 813, in commit
    self._get_parents_tuples(),
  File "/home/exarkun/.bazaar/plugins/svn/commit.py", line 677, in 
_get_parents_tuples
    inv = self.repository.get_inventory(p)
  File "/home/exarkun/.bazaar/plugins/svn/repository.py", line 741, in 
get_inventory
    return self.revision_tree(revision_id).inventory
  File "/home/exarkun/.bazaar/plugins/svn/repository.py", line 946, in 
revision_tree
    return SvnRevisionTree(self, revision_id)
  File "/home/exarkun/.bazaar/plugins/svn/tree.py", line 161, in __init__
    self.id_map = repository.get_fileid_map(self._revmeta, self.mapping)
  File "/home/exarkun/.bazaar/plugins/svn/repository.py", line 748, in 
get_fileid_map
    return self.fileid_map.get_map(revmeta.get_foreign_revid(), mapping)
  File "/home/exarkun/.bazaar/plugins/svn/fileids.py", line 396, in get_map
    for revmeta, mapping in 
self.repos._iter_reverse_revmeta_mapping_history(branch, revnum, to_revnum=0, 
mapping=mapping):
  File "/home/exarkun/.bazaar/plugins/svn/repository.py", line 829, in 
_iter_reverse_revmeta_mapping_history
    revmeta = it.next()
  File "/home/exarkun/.bazaar/plugins/svn/util.py", line 165, in next
    return self.it()
  File "/home/exarkun/.bazaar/plugins/svn/revmeta.py", line 1003, in next
    ret = self._get_next()
  File "/home/exarkun/.bazaar/plugins/svn/revmeta.py", line 1366, in 
iter_changes
    from_revnum, to_revnum, pb=pb):
  File "/home/exarkun/.bazaar/plugins/svn/logwalker.py", line 115, in 
iter_prefixes_changes
    revpaths = get_revision_paths(revnum)
  File "/home/exarkun/.bazaar/plugins/svn/logwalker.py", line 268, in 
get_revision_paths
    return self.cache.get_revision_paths(revnum)
  File "/home/exarkun/.bazaar/plugins/svn/cache/tdbcache.py", line 220, in 
get_revision_paths
    db = bencode.bdecode(self.db["paths/%d" % revnum])
KeyError: 'No such TDB entry'

You can report this problem to Bazaar's developers by running
    apport-bug /var/crash/bzr.1000.2011-04-24T18:57.crash
if a bug-reporting window does not automatically appear.

Here's what I did to get to this state:

  1) Created a bzr branch of http://svn.twistedmatrix.com/bzr/Twisted/trunk
  2) Committed some changes to that branch with bzr
  3) Created an svn branch of svn+ssh://svn.twistedmatrix.com/svn/Twisted/trunk
  4) rebased the bzr branch using "bzr rebase  
svn+ssh://svn.twistedmatrix.com/svn/Twisted/branches/dns-comp-loop-5064"
  5) Tried to dpush into the svn branch using "bzr dpush 
svn+ssh://svn.twistedmatrix.com/svn/Twisted/branches/dns-comp-loop-5064"

** Affects: bzr-svn (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/769992

Title:
  bzr: ERROR: exceptions.KeyError: 'No such TDB entry'

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to