unable to find direct lhs parent

Bug #312272 reported by nicholas a. evans on 2008-12-29
14
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
High
Jelmer Vernooij

Bug Description

Using 0.5 r2271 on a private repository:

~/src/mdlogix/imrs $ bzr branch svn+https://svn.mdlogix.com/imrs/branches/2008-06-03-legal_relationships/ 0603-lr-kki/
The svn+ syntax is deprecated, use https://svn.mdlogix.com/imrs/branches/2008-06-03-legal_relationships/ instead.
bzr: ERROR: exceptions.AssertionError: Unable to find direct lhs parent for <RevisionMetadata for revision 24270, path imrs/tags/2007-07-13 in repository '0487d25d-142b-0410-8fcf-b82ac621bf97'>

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 "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 981, in run
    source_branch=br_from)
  File "/home/nevans/.bazaar/plugins/svn/remote.py", line 65, in sprout
    return super(SvnRemoteAccess, self).sprout(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1128, in sprout
    result, revision_id=_mod_revision.NULL_REVISION)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 705, in sprout
    self.copy_content_into(result, revision_id=revision_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 753, in copy_content_into
    self.tags.merge_to(destination.tags)
  File "/usr/lib/python2.5/site-packages/bzrlib/tag.py", line 211, in merge_to
    source_dict = self.get_tag_dict()
  File "/home/nevans/.bazaar/plugins/svn/tags.py", line 103, in get_tag_dict
    revnum=self.branch._revnum)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/home/nevans/.bazaar/plugins/svn/repository.py", line 762, in find_tags
    layout=layout, mapping=mapping, from_revnum=0, to_revnum=revnum)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/home/nevans/.bazaar/plugins/svn/repository.py", line 725, in find_tags_between
    refer_revmeta = revmeta.get_tag_revmeta(mapping)
  File "/home/nevans/.bazaar/plugins/svn/revmeta.py", line 213, in get_tag_revmeta
    lhs_parent_revmeta = self.get_lhs_parent_revmeta(mapping)
  File "/home/nevans/.bazaar/plugins/svn/revmeta.py", line 334, in get_lhs_parent_revmeta
    nm = get_next_parent(self)
  File "/home/nevans/.bazaar/plugins/svn/revmeta.py", line 329, in get_next_parent
    pm = nm.get_direct_lhs_parent_revmeta()
  File "/home/nevans/.bazaar/plugins/svn/revmeta.py", line 301, in get_direct_lhs_parent_revmeta
    self._direct_lhs_parent_revmeta = metaiterator.get_lhs_parent(self)
  File "/home/nevans/.bazaar/plugins/svn/revmeta.py", line 944, in get_lhs_parent
    raise AssertionError("Unable to find direct lhs parent for %r" % revmeta)
AssertionError: Unable to find direct lhs parent for <RevisionMetadata for revision 24270, path imrs/tags/2007-07-13 in repository '0487d25d-142b-0410-8fcf-b82ac621bf97'>

bzr 1.10 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'svn+https://svn.mdlogix.com/imrs/branches/2008-06-03-legal_relationships/', '0603-lr-kki/']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /home/nevans/.bazaar/plugins/bzrtools [1.10]
  gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.95.0.final.1]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  push_and_update /home/nevans/.bazaar/plugins/push_and_update [0.2dev]
  rebase /home/nevans/.bazaar/plugins/rebase [0.4.1]
  svn /home/nevans/.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.

~/src/mdlogix/imrs $ svn log -v https://svn.mdlogix.com/ -r 24270
------------------------------------------------------------------------
r24270 | nevans | 2007-07-17 10:46:07 -0400 (Tue, 17 Jul 2007) | 2 lines
Changed paths:
   A /imrs/tags/2007-07-13 (from /imrs/tags/vfh-beta-current:24269)

Making the proper tag

------------------------------------------------------------------------

Perhaps the empty revision (copying a tag from another tag) confused bzr-svn somewhere?

Neither /imrs/tags/2007-07-13 nor /imrs/tags/vfh-beta-current should be an ancestor for /imrs/branches/2008-06-03-legal_relationships/ (but I could be wrong).

Andrew Bennetts (spiv) wrote :
Download full text (4.8 KiB)

This is happening to me too when I try to use Python's SVN repository:

$ bzr pull --overwrite
Using saved parent location: http://svn.python.org/projects/python/trunk
bzr: ERROR: exceptions.AssertionError: Unable to find direct lhs parent for <RevisionMetadata for revision 11500, path python/tags/BBPY_0_2_3 in repository '6015fed2-1504-0410-9fe1-9d1591cc4771'>

Traceback (most recent call last):
  File "/home/andrew/code/bzr/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/andrew/code/bzr/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/home/andrew/code/bzr/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/andrew/code/bzr/bzrlib/builtins.py", line 798, in run
    possible_transports=possible_transports)
  File "/home/andrew/code/bzr/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/home/andrew/code/bzr/bzrlib/workingtree.py", line 1543, in pull
    possible_transports=possible_transports)
  File "/home/andrew/code/bzr/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/home/andrew/code/bzr/bzrlib/branch.py", line 1963, in pull
    _override_hook_target=_override_hook_target)
  File "/home/andrew/code/bzr/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/home/andrew/code/bzr/bzrlib/branch.py", line 1764, in pull
    result.tag_conflicts = source.tags.merge_to(self.tags, overwrite)
  File "/home/andrew/code/bzr/bzrlib/tag.py", line 211, in merge_to
    source_dict = self.get_tag_dict()
  File "/home/andrew/.bazaar/plugins/svn/tags.py", line 103, in get_tag_dict
    revnum=self.branch._revnum)
  File "/home/andrew/code/bzr/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/home/andrew/.bazaar/plugins/svn/repository.py", line 765, in find_tags
    layout=layout, mapping=mapping, from_revnum=0, to_revnum=revnum)
  File "/home/andrew/code/bzr/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/home/andrew/.bazaar/plugins/svn/repository.py", line 726, in find_tags_between
    refer_revmeta = revmeta.get_tag_revmeta(mapping)
  File "/home/andrew/.bazaar/plugins/svn/revmeta.py", line 213, in get_tag_revmeta
    lhs_parent_revmeta = self.get_lhs_parent_revmeta(mapping)
  File "/home/andrew/.bazaar/plugins/svn/revmeta.py", line 334, in get_lhs_parent_revmeta
    nm = get_next_parent(self)
  File "/home/andrew/.bazaar/plugins/svn/revmeta.py", line 329, in get_next_parent
    pm = nm.get_direct_lhs_parent_revmeta()
  File "/home/andrew/.bazaar/plugins/svn/revmeta.py", line 301, in get_direct_lhs_parent_revmeta
    self._direct_lhs_parent_revmeta = metaiterator.get_lhs_parent(self)
  File "/home/andrew/.bazaar/plugins/svn/revmeta.py", line 944, in get_lhs_parent
    raise AssertionError("Unable to find direct lhs parent for %r" % revmeta)
AssertionError: Unable to find direct lhs parent for <RevisionMetadata for revision 11500, path python/tags/BBPY_0_2_3 in repository '6015fed2-1504-04...

Read more...

Jelmer Vernooij (jelmer) wrote :

I can confirm this still occurs with current 0.5 branch.

Changed in bzr-svn:
assignee: nobody → jelmer
importance: Undecided → High
milestone: none → 0.5.0
status: New → Triaged
Jelmer Vernooij (jelmer) wrote :

Easiest way to reproduce:

bzr tags -d http://svn.python.org/projects/python/trunk

Jelmer Vernooij (jelmer) on 2009-01-13
Changed in bzr-svn:
status: Triaged → Fix Released
Luke-Jr (luke-jr) wrote :

I'm encountering this problem with bzr-svn 0.5.0 RC1, so why is it marked Fix Released? :/

On Wed, 2009-01-21 at 19:16 +0000, Luke-Jr wrote:
> I'm encountering this problem with bzr-svn 0.5.0 RC1, so why is it
> marked Fix Released? :/
The fix for this is in the 0.5 branch.

Cheers,

Jelmer

--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/
Jabber: <email address hidden>

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers