branch fails with UnicodeDecodeError

Bug #789133 reported by Soren Hansen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Hg Plugin
Triaged
High
Unassigned

Bug Description

I'm trying to branch http://xenbits.xen.org/hg/xen-4.1-testing.hg/

It's rather big, so it sits there for quite a while before it gets anywhere. I recommend using mercurial to check it out and then try branching that checkout using bzr to reproduce this issue:

I get this error:

 Traceback (most recent call last):
   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 926, in exception_to_return_code
     return the_callable(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1126, in run_bzr
     ret = run(*run_argv)
   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 691, in run_argv_aliases
     return self.run(**all_cmd_args)
   File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 713, in run
     return self._operation.run_simple(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
     self.cleanups, self.func, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
     result = func(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 1227, in run
     source_branch=br_from)
   File "/home/username/.bazaar/plugins/hg/dir.py", line 198, in sprout
     interrepo.fetch(revision_id=revision_id)
   File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 194, in write_locked
     result = unbound(self, *args, **kwargs)
   File "/home/username/.bazaar/plugins/hg/fetch.py", line 752, in fetch
     self.addchangegroup(cg, mapping, limit=limit)
   File "/home/username/.bazaar/plugins/hg/fetch.py", line 599, in addchangegroup
     self._unpack_changesets(changesetchunks, mapping, pb, limit=limit)
   File "/home/username/.bazaar/plugins/hg/fetch.py", line 475, in _unpack_changesets
     parse_changeset(fulltext)
   File "/home/username/.bazaar/plugins/hg/parsers.py", line 87, in parse_changeset
     desc = text[last + 2:].decode("utf-8")
   File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
     return codecs.utf_8_decode(input, errors, True)
 UnicodeDecodeError: 'utf8' codec can't decode byte 0xe4 in position 94: invalid continuation byte

While seemingly similar to Bug #486541, this seems to be caused by commit comment having a non-utf-8 string in it, not a filename, so perhaps this particular bug won't be deemed a Won't Fix :)

This is with bzr-hg revno 478, mercurial 1.7.5 and bzr 2.3.1

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

Reproduced with trunk.

Changed in bzr-hg:
status: New → Triaged
importance: Undecided → High
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.