hg convert -s svn http://... repo with password authentication (win)
Stanimir Stamenkov
s7an10 at netscape.net
Tue Aug 11 07:27:43 CDT 2009
I'm trying to use the hg convert extension on Windows to convert a
Subversion repository to Mercurial with no luck so far. I'm trying
using both the 1.3.1 binary from <http://mercurial.berkwood.com/>
and the one bundled with TortoiseHG 0.8.1. The problem seems caused
by the SVN repo being password protected, as trying with some
examples seen on the Web worked fine. I'm issuing the following
command (given example URLs, as I can't reveal the real ones):
hg convert -s svn http://svn.example.com/module/trunk
and I get the following output followed by prompt:
assuming destination trunk-hg
initializing destination trunk-hg repository
Enter username for Subversion at svn.example.com:
I enter my user name and press Enter, then I get prompt:
in Subversion at svn.example.com:
Entering whatever causes the user name prompt to reappear. If I try
the following command instead:
hg convert -s svn http://uname:passw@svn.example/module/trunk
I get the following:
assuming destination trunk-hg
initializing destination trunk-hg repository
** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 1.3.1)
** Extensions loaded: win32text, convert
Traceback (most recent call last):
File "hg", line 27, 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 314, in open_http
File "httplib.pyc", line 1159, in __init__
File "httplib.pyc", line 639, in __init__
File "httplib.pyc", line 651, in _set_hostport
httplib.InvalidURL: nonnumeric port: ''
Am I missing something, or may be doing it wrong?
--
Stanimir
More information about the Mercurial
mailing list