'SvnRepository' object has no attribute '_serializer'

Bug #97220 reported by Hector Miuler Malpica Gallegos
6
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
Undecided
Jelmer Vernooij
bzr-svn (Ubuntu)
Fix Released
Undecided
Jelmer Vernooij

Bug Description

1.
bzr checkout svn://serverx.com/svn/project/
...

2.
vim readme.txt
3.
bzr commit --local -m 'text'
4.
vim readme2.txt
5.
bzr commit --local -m 'text2'

6.
bzr update
All changes applied successfully.
All changes applied successfully.
Updated to revision 5.
Your local commits will now show as pending merges with 'bzr status', and can be committed with 'bzr commit'.

7.
bzr commit -m 'TEST COMMIT SVN'

modified readme.txt
modified readme2.txt
bzr: ERROR: exceptions.AttributeError: 'SvnRepository' object has no attribute '_serializer'

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 650, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 612, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 304, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 2118, in run
    reporter=reporter)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree_4.py", line 244, in commit
    result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 160, in commit
    revprops=revprops, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/commit.py", line 345, in commit
    revision_id=self.rev_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 329, in fetch
    return InterRepository.get(source, self).fetch(revision_id=revision_id,
  File "/usr/lib/python2.5/site-packages/bzrlib/inter.py", line 82, in get
    if provider.is_compatible(source, target):
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 1346, in is_compatible
    if source._serializer != target._serializer:
AttributeError: 'SvnRepository' object has no attribute '_serializer'

bzr 0.15.0candidate3 on python 2.5.0.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'commit', '-m', 'TEST COMMIT SVN']

Revision history for this message
Hector Miuler Malpica Gallegos (miuler) wrote :

ii bzr 0.15~rc3-0ubuntu1
ii bzr-svn 0.3.2-0ubuntu1

Revision history for this message
Václav Šmilauer (eudoxos) wrote :

I just hit this one also. If you say how to debug it, I will be happy to help here. It happened with both feisty's bzr-svn and current (today's) .3 branch. bzr is at 0.15-0ubuntu2.

Thanks.

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

This was fixed in 0.3.3 IIRC

Changed in bzr-svn:
assignee: nobody → jelmer
status: Unconfirmed → Fix Released
assignee: nobody → jelmer
status: Unconfirmed → Fix Released
Revision history for this message
Václav Šmilauer (eudoxos) wrote :

I updated bzr to make sure to 0.17.0candidate1 and have 2 days old 0.3 branch of bzr-svn (https://code.launchpad.net/~jelmer/bzr-svn/0.3 -as before).

The same error as before. However, I did "bzr unbind", then tried "bzr push" to saved location (failed, saying "No new revisions to push."). Finally, for the heck of it, since it should not work on unbound branches, I tried "bzr commit" and it seemed to work ("Commited revision 17."). But when I checked svn repo, it was really NOT commited!

Then I tried "bzr push", it exited with the following:

Using saved location: svn+ssh://svn.berlios.de/svnroot/repos/yade/trunk
bzr: ERROR: libsvn._core.SubversionException: ('Invalid diff stream: insn 0 cannot be decoded', 185003)

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 718, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 679, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 375, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 804, in run
    push_result = br_from.push(br_to, overwrite)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 127, in read_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1542, in push
    _override_hook_source_branch=_override_hook_source_branch)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1584, in _push_with_bound_branches
    result = self._basic_push(target, overwrite, stop_revision)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1603, in _basic_push
    target.update_revisions(self, stop_revision)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/branch.py", line 216, in update_revisions
    push_as_merged(self, other, rev_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/commit.py", line 438, in push_as_merged
    return builder.commit(rev.message)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/commit.py", line 322, in commit
    svn.delta.editor_invoke_close_edit(self.editor, editor_baton)
  File "/var/lib/python-support/python2.5/libsvn/delta.py", line 562, in svn_delta_editor_invoke_close_edit
    return apply(_delta.svn_delta_editor_invoke_close_edit, args)
SubversionException: ('Invalid diff stream: insn 0 cannot be decoded', 185003)

bzr 0.17.0candidate1 on python 2.5.1.candidate.1 (linux2)
arguments: ['/usr/bin/bzr', 'push']

** please send this report to <email address hidden>

I am sorry to flood you with those reports. (Again, can help you debugging that in any way you tell me.)

Revision history for this message
Benjamin Heitmann (benjamin-heitmann) wrote :

I run into exactly the same bug, when doing the same things
(committing the changes to the bazaar repository back to the orginal subversion repository).

All tests of "bzr selftest svn" run successfully.

I am using the following versions:
bzr 0.18
bzr-svn 0.3.5
python 2.5.1
subversion 1.4.3 patched with http://samba.org/~metze/subversion-1.4.0-metze-python-bindings.patch
and the compiled with swig 1.3.25

Everything running on Mac OS X with fink.

The error I get is this one:
bzr: ERROR: exceptions.AttributeError: 'SvnRepository' object has no attribute '_serializer'

Traceback (most recent call last):
  File "/sw/lib/python2.5/site-packages/bzrlib/commands.py", line 729, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/sw/lib/python2.5/site-packages/bzrlib/commands.py", line 691, in run_bzr
    ret = run(*run_argv)
  File "/sw/lib/python2.5/site-packages/bzrlib/commands.py", line 389, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/sw/lib/python2.5/site-packages/bzrlib/builtins.py", line 2199, in run
    reporter=reporter, revprops=properties)
  File "/sw/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/sw/lib/python2.5/site-packages/bzrlib/workingtree_4.py", line 245, in commit
    result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
  File "/sw/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/sw/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 207, in commit
    revprops=revprops, *args, **kwargs)
  File "/sw/lib/python2.5/site-packages/bzrlib/commit.py", line 327, in commit
    revision_id=self.rev_id)
  File "/sw/lib/python2.5/site-packages/bzrlib/repository.py", line 362, in fetch
    inter = InterRepository.get(source, self)
  File "/sw/lib/python2.5/site-packages/bzrlib/inter.py", line 82, in get
    if provider.is_compatible(source, target):
  File "/sw/lib/python2.5/site-packages/bzrlib/repository.py", line 1427, in is_compatible
    if source._serializer != target._serializer:
AttributeError: 'SvnRepository' object has no attribute '_serializer'

bzr 0.18.0 on python 2.5.1.final.0 (darwin)
arguments: ['/sw/bin/bzr', 'commit']

** please send this report to <email address hidden>

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 97220] Re: 'SvnRepository' object has no attribute '_serializer'

This bug has been fixed in 0.4.0, not 0.3.5 (it can't be fixed in the
0.3 branch, though the error message could be improved). "bzr commit"
from a checkout ("bzr co ...") does not work in 0.3.5.

  status fixreleased

Revision history for this message
Benjamin Heitmann (benjamin-heitmann) wrote : Re: [Bug 97220] Re: 'SvnRepository' object has no attribute '_serializer'

On 05.08.2007, at 14:14, Jelmer Vernooij wrote:

> This bug has been fixed in 0.4.0, not 0.3.5 (it can't be fixed in the
> 0.3 branch, though the error message could be improved). "bzr commit"
> from a checkout ("bzr co ...") does not work in 0.3.5.
>
> status fixreleased

Okay, I just saw the update of the bzr-svn page at http://bazaar-
vcs.org/BzrForeignBranches/Subversion

It states that bzr-svn 0.4 works with bazaar 0.19, so I guess it does
not work with 0.18.

As 0.19 has not been released, are you referring to the
https://launchpad.net/bzr/bzr.dev
branch ?

cheers, Benjamin.

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 97220] Re: 'SvnRepository' object has no attribute '_serializer'

On Sun, 2007-08-05 at 13:44 +0000, Benjamin Heitmann wrote:
> As 0.19 has not been released, are you referring to the
> https://launchpad.net/bzr/bzr.dev
> branch ?
Yep, exactly - that branch should work.

Cheers,

Jelmer

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.