decode error on cvs import

Bug #278104 reported by Manson Thomas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CVS to Bazaar importer
New
Undecided
Unassigned

Bug Description

Hi,

  I'm setting up a new server to replace the old one. I decided to switch to bazaar at the same time. I've an error that ask me to fill in a bug report. so here I am ;)

  The old server was a centos based distribution (sme server) 32bit, with cvs 1.11.17.
  The new server is a ubuntu server 8.04 64bit with cvs 1.12.13.

  I've scp the old server cvs repository archive (build with 'tar jcf') to the new server.

  You can find a copy here : http://paquerette.com/20081004_ibay_cvs.tar.bz2

Here is the ouput of command :

_______________________________________________________________________________
paquerette@home:~/temp$ bzr cvsps-import cvs/files/ . bazaar --use-cvs --encoding=UTF-8
Creating cvsps dump file: bazaar/staging/ROOT.dump
Processed 0 patches (0 new, 0 existing) on 0 branches (0 tags) in 20.5s (0.00 patch/s)
bzr: ERROR: exceptions.UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1-3: invalid data

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 834, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 790, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/paquerette/.bazaar/plugins/cvsps_import/__init__.py", line 95, in run
    importer.process()
  File "/home/paquerette/.bazaar/plugins/cvsps_import/cvsps/importer.py", line 1266, in process
    patchsets = self._parse_cvsps_dump(pb=pb)
  File "/home/paquerette/.bazaar/plugins/cvsps_import/cvsps/importer.py", line 1199, in _parse_cvsps_dump
    patchsets = parser.parse(pb=pb)
  File "/home/paquerette/.bazaar/plugins/cvsps_import/cvsps/parser.py", line 244, in parse
    self._handle_log_line(line)
  File "/home/paquerette/.bazaar/plugins/cvsps_import/cvsps/parser.py", line 158, in _handle_log_line
    self._patchset.log.append(line.decode(self._encoding))
  File "/usr/lib/python2.5/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1-3: invalid data

bzr 1.3.1 on python 2.5.2.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'cvsps-import', 'cvs/files/', '.', 'bazaar', '--use-cvs', '--encoding=UTF-8']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.3.0]
  cvsps_import /home/paquerette/.bazaar/plugins/cvsps_import [unknown]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
*** 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.
_______________________________________________________________________________

_______________________________________________________________________________
paquerette@home:~/temp$ bzr cvsps-import cvs/files/ . bazaar --use-cvs
Creating cvsps dump file: bazaar/staging/ROOT.dump
Read 118 patchsets (string cache hits: 0, total: 16939)
Failed while processing: Patchset(2, HEAD, paquerette, 2006/10/22 22:08:38)
Processed 1 patches (1 new, 0 existing) on 0 branches (1 tags) in 0.8s (1.29 patch/s)
bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 43: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 834, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 790, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/paquerette/.bazaar/plugins/cvsps_import/__init__.py", line 95, in run
    importer.process()
  File "/home/paquerette/.bazaar/plugins/cvsps_import/cvsps/importer.py", line 1269, in process
    self._process_patchsets(cvs_to_bzr, patchsets, pb=pb)
  File "/home/paquerette/.bazaar/plugins/cvsps_import/cvsps/importer.py", line 1208, in _process_patchsets
    rev_id, action = cvs_to_bzr.handle_patchset(patchset)
  File "/home/paquerette/.bazaar/plugins/cvsps_import/cvsps/importer.py", line 749, in handle_patchset
    revision_id = self._extract_changes(patchset)
  File "/home/paquerette/.bazaar/plugins/cvsps_import/cvsps/importer.py", line 986, in _extract_changes
    txt, executable = self._cvs_updater.get_text(member, revision)
  File "/home/paquerette/.bazaar/plugins/cvsps_import/cvsps/importer.py", line 666, in get_text
    rcs_file = self._get_rcs_filename(filename)
  File "/home/paquerette/.bazaar/plugins/cvsps_import/cvsps/importer.py", line 601, in _get_rcs_filename
    filename + ',v')
  File "/usr/lib/python2.5/posixpath.py", line 63, in join
    path += b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 43: ordinal not in range(128)

bzr 1.3.1 on python 2.5.2.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'cvsps-import', 'cvs/files/', '.', 'bazaar', '--use-cvs']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.3.0]
  cvsps_import /home/paquerette/.bazaar/plugins/cvsps_import [unknown]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
*** 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.

_______________________________________________________________________________

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.