Cannot check-out SVN repository (created by SVN 1.5 as far as I remember).

Bug #509063 reported by Paweł Kierski
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Incomplete
Undecided
Unassigned

Bug Description

I tried to check-out SVN repository created as local file repository on Windows, SVN version 1.5. I probably used some polish diacritics in log and/or file/directory names. Traceback as follows:

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

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 842, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1037, in run_bzr
  File "bzrlib\commands.pyo", line 654, in run_argv_aliases
  File "D:/Program Files/Bazaar/plugins\qbzr\lib\commands.py", line 787, in run
  File "bzrlib\commands.pyo", line 1037, in run_bzr
  File "bzrlib\commands.pyo", line 654, in run_argv_aliases
  File "bzrlib\builtins.pyo", line 1336, in run
  File "D:/Program Files/Bazaar/plugins\svn\branch.py", line 337, in create_checkout
  File "D:/Program Files/Bazaar/plugins\svn\branch.py", line 282, in _create_heavyweight_checkout
  File "bzrlib\decorators.pyo", line 192, in write_locked
  File "bzrlib\branch.pyo", line 948, in pull
  File "D:/Program Files/Bazaar/plugins\svn\branch.py", line 730, in pull
  File "D:/Program Files/Bazaar/plugins\svn\branch.py", line 665, in update_revisions
  File "D:/Program Files/Bazaar/plugins\svn\fetch.py", line 1279, in fetch
  File "D:/Program Files/Bazaar/plugins\svn\fetch.py", line 1209, in _fetch_revisions
  File "D:/Program Files/Bazaar/plugins\svn\fetch.py", line 1154, in _fetch_revision_switch
  File "D:/Program Files/Bazaar/plugins\svn\errors.py", line 137, in convert
  File "D:/Program Files/Bazaar/plugins\svn\fetch.py", line 920, in report_inventory_contents
  File "D:/Program Files/Bazaar/plugins\svn\fetch.py", line 292, in close
  File "D:/Program Files/Bazaar/plugins\svn\fetch.py", line 455, in _close
  File "D:/Program Files/Bazaar/plugins\svn\fetch.py", line 696, in _finish_commit
  File "bzrlib\repository.pyo", line 1115, in add_revision
  File "bzrlib\repository.pyo", line 1118, in _add_revision
  File "bzrlib\chk_serializer.pyo", line 74, in write_revision_to_string
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 4: ordinal not in range(128)

bzr 2.0.3 on python 2.5.4 (Windows-XP-5.1.2600-SP3)
arguments: ['D:\\Program Files\\Bazaar\\bzr.exe', 'qsubprocess', '--bencode', 'l8:checkout25:F:/SVN_project_repository77:D:\\Documents and Settings\\p.kierski\\My Documents\\Visual Studio 2005\\Projects\\e']
encoding: 'cp1250', fsenc: 'mbcs', lang: None
plugins:
  bzrtools D:\Program Files\Bazaar\plugins\bzrtools [2.0.1]
  explorer D:\Program Files\Bazaar\plugins\explorer [0.8.3]
  launchpad D:\Program Files\Bazaar\plugins\launchpad [2.0.3]
  netrc_credential_store D:\Program Files\Bazaar\plugins\netrc_credential_store [2.0.3]
  qbzr D:\Program Files\Bazaar\plugins\qbzr [0.14.5]
  rebase D:\Program Files\Bazaar\plugins\rebase [0.5.4]
  svn D:\Program Files\Bazaar\plugins\svn [1.0.0]
  upload D:\Program Files\Bazaar\plugins\upload [1.0.0dev]
  xmloutput D:\Program Files\Bazaar\plugins\xmloutput [0.8.5]
-----------

Related branches

Revision history for this message
Martin Pool (mbp) wrote :

This seems to mean that bzr-svn is feeding core bzr bytes when it should be sending unicode, probably the input is not in the encoding bzr-svn expects. It might be a core bug though.

affects: bzr → bzr-svn
Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 509063] Re: Cannot check-out SVN repository (created by SVN 1.5 as far as I remember).

Can you please try again with a newer version of bzr-svn, e.g. 1.0.2 ?

I don't see how this could occur with the current versions, we properly
pass in unicode everywhere - never a ascii string.

Jelmer Vernooij (jelmer)
Changed in bzr-svn:
status: New → Incomplete
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.