UnicodeDecodeError when running 'bzr init'

Bug #242606 reported by Andi Albrecht
2
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
Low
Jelmer Vernooij

Bug Description

I get this error when I try to run 'bzr init' on a fresh SVN checkout. There was a file with a non-ascii filename which was deleted a few commits before I did the SVN checkout. It looks like this causes the troubles somehow.
BTW, when I remove bzr-svn plugin everything works fine.

bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 84: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 846, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 1369, in run
    and not existing_bzrdir.has_workingtree()):
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 854, in has_workingtree
    self.open_workingtree(recommend_upgrade=False)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/workingtree.py", line 741, in open_workingtree
    return SvnWorkingTree(self, self.local_path, self.open_branch())
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/workingtree.py", line 88, in __init__
    self.base_tree = SvnBasisTree(self)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/tree.py", line 275, in __init__
    workingtree.branch.mapping)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/repository.py", line 286, in get_fileid_map
    return self.fileid_map.get_map(self.uuid, revnum, path, mapping)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/fileids.py", line 264, in get_map
    mapping, log_find_children)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/fileids.py", line 108, in apply_changes
    self.repos.generate_revision_id, find_children)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/fileids.py", line 51, in get_local_changes
    for c in get_children(data[1], data[2]):
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/fileids.py", line 259, in log_find_children
    return self.repos._log.find_children(path, revnum)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/logwalker.py", line 398, in find_children
    ft = conn.check_path(path, revnum)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/errors.py", line 105, in convert
    return unbound(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/transport.py", line 94, in convert
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/transport.py", line 331, in check_path
    return svn.ra.check_path(self._ra, path.encode('utf-8'), revnum)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 84: ordinal not in range(128)

bzr 1.5 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'init']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'de_DE.UTF-8'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.5.0]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  rebase /usr/lib/python2.5/site-packages/bzrlib/plugins/rebase [0.3.0]
  svn /usr/lib/python2.5/site-packages/bzrlib/plugins/svn [0.4.10]
*** 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.

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

I agree this is a cosmetic error, though what you're trying to do shouldn't work anyway - it should give an error saying the path is already versioned.

Changed in bzr-svn:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This line is no longer in bzr-svn. Please reopen if you can still reproduce this with 0.4.11.

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