AssertError: Empty parent added, but child wasn't added

Bug #315666 reported by Christoph Neumann
2
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Invalid
Undecided
Unassigned

Bug Description

I'm running bzr-svn 0.5 trunk revno 2271

bzr branch -v http://server/svn/test/project/trunk project
cd project
bzr svn-push -v http://server/svn/test/project/branches/foo

I get an assert error:

bzr: ERROR: exceptions.AssertionError: Empty parent 'project/branches' added, but child 'project/branches/foo' wasn't added !?

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/neumann/.bazaar/plugins/svn/__init__.py", line 425, in run
    _override_svn_revprops=override_svn_revprops)
  File "/home/neumann/.bazaar/plugins/svn/branch.py", line 395, in pull
    (result.old_revno, result.old_revid) = self.last_revision_info()
  File "/home/neumann/.bazaar/plugins/svn/branch.py", line 327, in last_revision_info
    last_revid = self.last_revision()
  File "/home/neumann/.bazaar/plugins/svn/branch.py", line 377, in last_revision
    last_revmeta, mapping = self.last_revmeta()
  File "/home/neumann/.bazaar/plugins/svn/branch.py", line 169, in last_revmeta
    for revmeta, mapping in self._revision_meta_history():
  File "/home/neumann/.bazaar/plugins/svn/branch.py", line 361, in _revision_meta_history
    self._revmeta_cache = self.repository.get_mainline(self.get_branch_path(), self._revnum or self.repository.get_latest_revnum(), self.mapping, pb=pb)
  File "/home/neumann/.bazaar/plugins/svn/repository.py", line 485, in get_mainline
    to_revnum=0, pb=pb), mapping))
  File "/home/neumann/.bazaar/plugins/svn/revmeta.py", line 1224, in iter_with_mapping
    for revmeta in it:
  File "/home/neumann/.bazaar/plugins/svn/revmeta.py", line 820, in next
    return self.it()
  File "/home/neumann/.bazaar/plugins/svn/revmeta.py", line 869, in next
    ret = self._get_next()
  File "/home/neumann/.bazaar/plugins/svn/revmeta.py", line 1145, in iter_changes
    from_revnum, to_revnum, pb=pb):
  File "/home/neumann/.bazaar/plugins/svn/logwalker.py", line 313, in iter_changes
    next = changes.find_prev_location(revpaths, path, revnum)
  File "/home/neumann/.bazaar/plugins/svn/changes.py", line 67, in find_prev_location
    "Empty parent %r added, but child %r wasn't added !?" % (p, branch_path)
AssertionError: Empty parent 'project/branches' added, but child 'project/branches/foo' wasn't added !?

bzr 1.10 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'svn-push', '-v', 'http://server/svn/test/project/branches/foo']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.10]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  svn /home/neumann/.bazaar/plugins/svn [0.5.0.rc.1]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Revision history for this message
Christoph Neumann (enigma2a) wrote :

I found the problem. I had recreated the subversion repo from scratch, but I had not removed ~/.bazaar/svn-cache. After clearing the cache, the svn-push worked just fine.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Thanks.

Changed in bzr-svn:
status: New → 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.