[issue2791] hg convert svn repository with "é" in name fails

gbranchaud bugs at mercurial.selenic.com
Tue May 3 21:25:27 CDT 2011

New submission from gbranchaud <gabriel.branchaud at polymtl.ca>:

I am using Mercurial v1.8.3 (installed it as part of the normal install of
TortoiseHG v2.0.4).

I am running this under Windows XP SP3, in French. My Windows setup is
nothing out of the ordinary.

I was trying to convert one of my SVN repositories into a Mercurial one.
The command I was running was:
hg convert --authors auth.txt
"https://XXXXX.svn.YYYYYYY.com/code/trunk/INF4702 - Démo" "INF4702 - Demo"

Running this command produced the following output:
initializing destination INF4702 - Demo repository
svn: cannot probe remote repository, assume it could be a subversion
repository. Use --source-type if you know better.
** unknown exception encountered, please report by visiting
**  http://mercurial.selenic.com/wiki/BugTracker
** Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)]
** Mercurial Distributed SCM (version 1.8.3)
** Extensions loaded: fixfrozenexts, fetch, mercurial_keyring, progress, convert
Traceback (most recent call last):
  File "hg", line 36, in <module>
  File "mercurial\dispatch.pyo", line 16, in run
  File "mercurial\dispatch.pyo", line 36, in dispatch
  File "mercurial\dispatch.pyo", line 58, in _runcatch
  File "mercurial\dispatch.pyo", line 601, in _dispatch
  File "mercurial\dispatch.pyo", line 406, in runcommand
  File "mercurial\dispatch.pyo", line 655, in _runcommand
  File "mercurial\dispatch.pyo", line 609, in checkargs
  File "mercurial\dispatch.pyo", line 598, in <lambda>
  File "mercurial\util.pyo", line 433, in check
  File "hgext\convert\__init__.pyo", line 269, in convert
  File "hgext\convert\convcmd.pyo", line 409, in convert
  File "hgext\convert\convcmd.pyo", line 56, in convertsource
  File "hgext\convert\subversion.pyo", line 239, in __init__
  File "hgext\convert\transport.pyo", line 88, in __init__
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 55:
ordinal not in range(128)

Of course, I expected a successfull conversion.

messages: 16158
nosy: gbranchaud
priority: bug
status: unread
title: hg convert svn repository with "é" in name fails

Mercurial issue tracker <bugs at mercurial.selenic.com>

More information about the Mercurial-devel mailing list