'bzr branch' for a svn branch bails out

Bug #125299 reported by Mikhail Sobolev
2
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
Low
Jelmer Vernooij

Bug Description

I'm trying to import a svn branch at https://user:password@host/path/to/repo/branches/branch, the following command bails out:

bzr branch https://user:password@host/path/to/repo/branches/branch

bzr: ERROR: exceptions.TypeError: a2b_base64() argument 1 must be string or read-only character buffer, not None

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 884, in run
    dir = br_from.bzrdir.sprout(to_transport.base, revision_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/format.py", line 79, in sprout
    result_repo = repo.clone(result, revision_id)
  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/repository.py", line 401, in clone
    self.copy_content_into(dest_repo, revision_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 354, in copy_content_into
    return InterRepository.get(self, destination).copy_content(revision_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/fetch.py", line 397, in copy_content
    self.source._log.get_revision_info(revnum),
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/logwalker.py", line 207, in get_revision_info
    return (author, _escape_commit_message(base64.b64decode(message)), date)
  File "base64.py", line 73, in b64decode
    return binascii.a2b_base64(s)
TypeError: a2b_base64() argument 1 must be string or read-only character buffer, not None

bzr 0.17.0 on python 2.5.1.candidate.1 (linux2)
[ the arguments are skipped as they contain user name and password ]

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

Is there some public repository that you can reproduce this with?

Jelmer Vernooij (jelmer)
Changed in bzr-svn:
status: New → Incomplete
Revision history for this message
Mikhail Sobolev (sa2ajj) wrote :

I tried the trunk for the very same repository (and the trunk does not require authentication). It fails with the same error (see at the end). I start to wonder if there's something wrong with my installation... What information could I provide to help the investigation?

--- error starts here ----

$ bzr branch 'https://only.mawhrin.net/repos/stuff/trunk'
bzr: ERROR: exceptions.TypeError: a2b_base64() argument 1 must be string or read-only character buffer, not None

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 884, in run
    dir = br_from.bzrdir.sprout(to_transport.base, revision_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/format.py", line 79, in sprout
    result_repo = repo.clone(result, revision_id)
  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/repository.py", line 401, in clone
    self.copy_content_into(dest_repo, revision_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 354, in copy_content_into
    return InterRepository.get(self, destination).copy_content(revision_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/fetch.py", line 397, in copy_content
    self.source._log.get_revision_info(revnum),
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/logwalker.py", line 207, in get_revision_info
    return (author, _escape_commit_message(base64.b64decode(message)), date)
  File "base64.py", line 73, in b64decode
    return binascii.a2b_base64(s)
TypeError: a2b_base64() argument 1 must be string or read-only character buffer, not None

bzr 0.17.0 on python 2.5.1.candidate.1 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'https://only.mawhrin.net/repos/stuff/trunk']

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

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 125299] 'bzr branch' for a svn branch bails out

  status fixcommitted

Can no longer reproduce this with the current development version.

Changed in bzr-svn:
status: Incomplete → Fix Committed
Revision history for this message
Mikhail Sobolev (sa2ajj) wrote :

Just to make sure what environment I should use: latest bzr (bzr.dev) + latest bzr-svn?

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 125299] Re: 'bzr branch' for a svn branch bails out

On Mon, 2007-07-16 at 10:12 +0000, Mikhail Sobolev wrote:
> Just to make sure what environment I should use: latest bzr (bzr.dev) +
> latest bzr-svn?
bzr-svn from http://people.samba.org/bzr/jelmer/bzr-svn/bzr.dev - I
wouldn't recommend using that for any production code though.

Cheers,

Jelmer

Revision history for this message
Mikhail Sobolev (sa2ajj) wrote :

For what it's worth, the problem does not manifest itself on my computer with the latest bzr, bzr-svn and python 2.5.

Jelmer Vernooij (jelmer)
Changed in bzr-svn:
assignee: nobody → jelmer
importance: Undecided → Low
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.