Issue1782

Title Traceback with SVN convert on Windows
Priority bug Status resolved
Superseder Nosy List Grauw, djc, pmezard
Assigned To Topics

Created on 2009-08-06.18:16:15 by Grauw, last changed 2009-12-31.10:21:45 by pmezard.

Files
File name Uploaded Type Edit Remove
svn.diff pmezard, 2009-09-30.20:21:49 text/x-diff
Messages
msg11331 (view) Author: pmezard Date: 2009-12-31.10:21:45
In main, resolving
msg10953 (view) Author: pmezard Date: 2009-11-11.19:01:30
Suggested fix in crew as 1b2516a547d4
msg10606 (view) Author: pmezard Date: 2009-09-30.20:21:49
I will take the last patch you posted on -devel.

But I don't think your authentication problem comes from your setup, but
from urllib2 setup. Can you retry the conversion with your patch, and with
"--source svn" ?

If it still fails, can you apply the patch attached and try again ?
msg10291 (view) Author: Grauw Date: 2009-08-07.20:02:06
I sent a patch to the mailinglist.

Note that although that patch fixes this specific issue, I’m still having
troubles with the locally built hg convert after this patch, I get the
following output:

C:\Users\Grauw\Development\Projects\hg-stable>hg convert
https://svn.cs.uu.nl:12443/repos/grauw-rep/
assuming destination grauw-rep-hg
Enter username for Subversion repositories at svn.cs.uu.nl:12443: lholst
 in Subversion repositories at svn.cs.uu.nl:12443:
Enter username for Subversion repositories at svn.cs.uu.nl:12443: lholst
 in Subversion repositories at svn.cs.uu.nl:12443:
Enter username for Subversion repositories at svn.cs.uu.nl:12443: lholst
 in Subversion repositories at svn.cs.uu.nl:12443:
Enter username for Subversion repositories at svn.cs.uu.nl:12443: interrupted!

Note the very strange missing ‘Enter password for lholst’ text at the fourth
line. I’m assuming this is a build problem on my machine, the environment is
kinda botched together, and it doesn’t happen when I manually invoke
urllib.urlopen('https://svn.cs.uu.nl:12443/repos/grauw-rep//!svn/ver/0/.svn') from
the python command line, which is where this login message originates from.

So I’m kinda hoping that the patched issue is the only thing preventing hg
convert from working on Windows and that the official build of Mercurial on
Windows won’t have this additional problem :).
msg10290 (view) Author: djc Date: 2009-08-07.07:22:46
Oh, wow, that's... interesting.
msg10289 (view) Author: Grauw Date: 2009-08-06.21:22:28
Looks like the following line in def issvnurl in subversion.py,

  path = urllib.url2pathname(path)

path before: svn.cs.uu.nl:12443/repos/grauw-rep/
path after: L:\12443\repos\grauw-rep
msg10285 (view) Author: djc Date: 2009-08-06.18:18:57
This should be fixed with crew-stable.

(Or try and use hgsubversion.)
msg10283 (view) Author: Grauw Date: 2009-08-06.18:16:15
Getting this traceback when trying to hg convert an SVN repository on Windows:

C:\Users\Grauw>hg --debug --traceback convert
https://svn.cs.uu.nl:12443/repos/grauw-rep/
assuming destination grauw-rep-hg
initializing destination grauw-rep-hg repository
Traceback (most recent call last):
  File "mercurial\dispatch.pyc", line 43, in _runcatch
  File "mercurial\dispatch.pyc", line 449, in _dispatch
  File "mercurial\dispatch.pyc", line 317, in runcommand
  File "mercurial\dispatch.pyc", line 501, in _runcommand
  File "mercurial\dispatch.pyc", line 454, in checkargs
  File "mercurial\dispatch.pyc", line 448, in <lambda>
  File "mercurial\util.pyc", line 402, in check
  File "hgext\convert\__init__.pyc", line 232, in convert
  File "hgext\convert\convcmd.pyc", line 369, in convert
  File "hgext\convert\convcmd.pyc", line 54, in convertsource
  File "hgext\convert\subversion.pyc", line 189, in __init__
  File "hgext\convert\subversion.pyc", line 163, in issvnurl
  File "hgext\convert\subversion.pyc", line 147, in httpcheck
  File "urllib.pyc", line 82, in urlopen
  File "urllib.pyc", line 190, in open
  File "urllib.pyc", line 404, in open_https
  File "httplib.pyc", line 1247, in __init__
  File "httplib.pyc", line 1126, in __init__
  File "httplib.pyc", line 639, in __init__
  File "httplib.pyc", line 651, in _set_hostport
InvalidURL: nonnumeric port: ''
** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial@selenic.com
** Mercurial Distributed SCM (version 1.3.1)
** Extensions loaded: extdiff, mq, convert
Traceback (most recent call last):
  File "hg", line 38, in <module>
  File "mercurial\dispatch.pyc", line 16, in run
  File "mercurial\dispatch.pyc", line 27, in dispatch
  File "mercurial\dispatch.pyc", line 43, in _runcatch
  File "mercurial\dispatch.pyc", line 449, in _dispatch
  File "mercurial\dispatch.pyc", line 317, in runcommand
  File "mercurial\dispatch.pyc", line 501, in _runcommand
  File "mercurial\dispatch.pyc", line 454, in checkargs
  File "mercurial\dispatch.pyc", line 448, in <lambda>
  File "mercurial\util.pyc", line 402, in check
  File "hgext\convert\__init__.pyc", line 232, in convert
  File "hgext\convert\convcmd.pyc", line 369, in convert
  File "hgext\convert\convcmd.pyc", line 54, in convertsource
  File "hgext\convert\subversion.pyc", line 189, in __init__
  File "hgext\convert\subversion.pyc", line 163, in issvnurl
  File "hgext\convert\subversion.pyc", line 147, in httpcheck
  File "urllib.pyc", line 82, in urlopen
  File "urllib.pyc", line 190, in open
  File "urllib.pyc", line 404, in open_https
  File "httplib.pyc", line 1247, in __init__
  File "httplib.pyc", line 1126, in __init__
  File "httplib.pyc", line 639, in __init__
  File "httplib.pyc", line 651, in _set_hostport
httplib.InvalidURL: nonnumeric port: ''

I have both TortoiseHg 0.8.1 and TortoiseSVN installed.

~Laurens
History
Date User Action Args
2009-12-31 10:21:45pmezardsetstatus: testing -> resolved
nosy: pmezard, djc, Grauw
messages: + msg11331
2009-11-11 19:01:30pmezardsetstatus: chatting -> testing
nosy: pmezard, djc, Grauw
messages: + msg10953
2009-09-30 20:21:49pmezardsetfiles: + svn.diff
nosy: + pmezard
messages: + msg10606
2009-08-07 20:02:07Grauwsetnosy: - sborho
messages: + msg10291
2009-08-07 07:22:56djcsetnosy: + sborho
2009-08-07 07:22:46djcsetnosy: djc, Grauw
messages: + msg10290
2009-08-06 21:22:29Grauwsetnosy: djc, Grauw
messages: + msg10289
2009-08-06 18:18:57djcsetstatus: unread -> chatting
nosy: + djc
messages: + msg10285
2009-08-06 18:16:15Grauwcreate