branch fails with UnicodeDecodeError

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

Bug Description

I'm trying to branch

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/", line 926, in exception_to_return_code
     return the_callable(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/bzrlib/", line 1126, in run_bzr
     ret = run(*run_argv)
   File "/usr/lib/python2.7/dist-packages/bzrlib/", line 691, in run_argv_aliases
   File "/usr/lib/python2.7/dist-packages/bzrlib/", line 713, in run
     return self._operation.run_simple(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/bzrlib/", line 135, in run_simple
     self.cleanups, self.func, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/bzrlib/", line 165, in _do_with_cleanups
     result = func(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/bzrlib/", line 1227, in run
   File "/home/username/.bazaar/plugins/hg/", line 198, in sprout
   File "/usr/lib/python2.7/dist-packages/bzrlib/", line 194, in write_locked
     result = unbound(self, *args, **kwargs)
   File "/home/username/.bazaar/plugins/hg/", line 752, in fetch
     self.addchangegroup(cg, mapping, limit=limit)
   File "/home/username/.bazaar/plugins/hg/", line 599, in addchangegroup
     self._unpack_changesets(changesetchunks, mapping, pb, limit=limit)
   File "/home/username/.bazaar/plugins/hg/", line 475, in _unpack_changesets
   File "/home/username/.bazaar/plugins/hg/", line 87, in parse_changeset
     desc = text[last + 2:].decode("utf-8")
   File "/usr/lib/python2.7/encodings/", 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.