failed assertion branch_path == "" in find_prev_location

Bug #665027 reported by Daniel Clemente
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
Medium
Jelmer Vernooij

Bug Description

With latest bzr and bzr-svn, this checkout from Subversion crashes after a while.

$ bzr branch https://tikiwiki.svn.sourceforge.net/svnroot/tikiwiki/trunk tiki-bzr

Initialising Subversion metadata cache in /home/dc/.mirp/.cache/bazaar/svn/b456876b-0849-0410-b77d-98878d47e9d5.
bzr: ERROR: exceptions.AssertionError:

Traceback (most recent call last):
  File "/home/w/bzr/oficial/bzrlib/commands.py", line 917, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/home/w/bzr/oficial/bzrlib/commands.py", line 1117, in run_bzr
    ret = run(*run_argv)
  File "/home/w/bzr/oficial/bzrlib/commands.py", line 691, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/w/bzr/oficial/bzrlib/commands.py", line 710, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/home/w/bzr/oficial/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/home/w/bzr/oficial/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/w/bzr/oficial/bzrlib/builtins.py", line 1229, in run
    source_branch=br_from)
  File "/home/dc/.mirp/.bazaar/plugins/svn/remote.py", line 138, in sprout
    return super(SvnRemoteAccess, self).sprout(*args, **kwargs)
  File "/home/w/bzr/oficial/bzrlib/controldir.py", line 406, in sprout
    result_repo.fetch(source_repository, fetch_spec=fetch_spec)
  File "/home/w/bzr/oficial/bzrlib/repository.py", line 1745, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/home/dc/.mirp/.bazaar/plugins/svn/fetch.py", line 1548, in fetch
    pb=nested_pb)
  File "/home/dc/.mirp/.bazaar/plugins/svn/fetch.py", line 1521, in _get_needed
    find_ghosts=find_ghosts, pb=pb)
  File "/home/dc/.mirp/.bazaar/plugins/svn/fetch.py", line 1292, in find_until
    find_ghosts=find_ghosts, pb=pb))
  File "/home/dc/.mirp/.bazaar/plugins/svn/fetch.py", line 1243, in find_mainline
    branch_path, revnum, to_revnum=0, mapping=mapping):
  File "/home/dc/.mirp/.bazaar/plugins/svn/repository.py", line 829, in _iter_reverse_revmeta_mapping_history
    revmeta = it.next()
  File "/home/dc/.mirp/.bazaar/plugins/svn/util.py", line 165, in next
    return self.it()
  File "/home/dc/.mirp/.bazaar/plugins/svn/revmeta.py", line 999, in next
    ret = self._get_next()
  File "/home/dc/.mirp/.bazaar/plugins/svn/revmeta.py", line 1362, in iter_changes
    from_revnum, to_revnum, pb=pb):
  File "/home/dc/.mirp/.bazaar/plugins/svn/logwalker.py", line 126, in iter_prefixes_changes
    revnum)
  File "/home/dc/.mirp/.bazaar/plugins/svn/changes.py", line 45, in find_prev_location
    assert branch_path == ""
AssertionError

bzr 2.3.0dev3 on python 2.6.6 (Linux-2.6.35.7-i686-with-debian-squeeze-sid)
arguments: ['/w/bzr/oficial/bzr', 'branch', 'https://tikiwiki.svn.sourceforge.net/svnroot/tikiwiki/trunk', 'tiki-bzr']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'ca_ES.UTF-8'
plugins:
  bash_completion /home/w/bzr/oficial/bzrlib/plugins/bash_completion [2.3.0dev3]
  bisect /home/dc/.mirp/.bazaar/plugins/bisect [1.1.0.pre.0]
  bzrtools /home/dc/.mirp/.bazaar/plugins/bzrtools [2.3.0]
  etckeeper /usr/lib/python2.6/dist-packages/bzrlib/plugins/etckeeper [unknown]
  explorer /home/dc/.mirp/.bazaar/plugins/explorer [1.1.0dev]
  fastimport /home/dc/.mirp/.bazaar/plugins/fastimport [0.9.0dev]
  gtk /home/dc/.mirp/.bazaar/plugins/gtk [0.99.1]
  launchpad /home/w/bzr/oficial/bzrlib/plugins/launchpad [2.3.0dev3]
  netrc_credential_store /home/w/bzr/oficial/bzrlib/plugins/netrc_credential_store [2.3.0dev3]
  news_merge /home/w/bzr/oficial/bzrlib/plugins/news_merge [2.3.0dev3]
  push_and_update /home/dc/.mirp/.bazaar/plugins/push_and_update [0.2.0dev]
  qbzr /home/dc/.mirp/.bazaar/plugins/qbzr [0.20.0dev1]
  svn /home/dc/.mirp/.bazaar/plugins/svn [1.0.5dev]

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

Related branches

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

Unfortunately I can't fetch this repository at the moment for other reasons :-(

SubversionException: ("REPORT of '/svnroot/tikiwiki/!svn/bc/30848/trunk': 200 OK (https://tikiwiki.svn.sourceforge.net)", 175002)

Revision history for this message
Bryan Cain (plombo) wrote :

I'm having the same problem with the following command:
bzr branch svn+https://lavalit.com/svn/openbor/tools

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

Thanks, that's useful information. I've reproduced it now and pushed a fix to trunk.

Changed in bzr-svn:
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → Jelmer Vernooij (jelmer)
Revision history for this message
Daniel Clemente (n142857) wrote :

The repository mentioned in comment 2 works for me with your patch, but the one mentioned in the description still produces the same error. I'm using latest development versions of subvertpy, bzr-svn and bzr.
See the attached bzr.log

Jelmer Vernooij (jelmer)
Changed in bzr-svn:
milestone: none → 1.1.0
Jelmer Vernooij (jelmer)
Changed in bzr-svn:
status: Fix Committed → Fix Released
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.