hg clone git+https://<user>@github.com
Created originally on Bitbucket by RomanValov (Roman Valov)
Hi,
there are examples of usage git+ssh with user name in documentation, however I can't see any examples of usage git+https with user name.
When I'm trying to do it I've got following error:
#!console
$ hg --version
Mercurial Distributed SCM (version 4.5.3)
...
$ hg --traceback clone git+https://RomanValov@github.com/RomanValov/data-science-demo
destination directory: data-science-demo
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/mercurial/scmutil.py", line 154, in callcatch
return func()
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 314, in _runcatchfunc
return _dispatch(req)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 918, in _dispatch
cmdpats, cmdoptions)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 673, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/usr/lib/python2.7/dist-packages/hgext/pager.py", line 77, in pagecmd
return orig(ui, options, cmd, cmdfunc)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 926, in _runcommand
return cmdfunc()
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 915, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 1197, in check
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/mercurial/commands.py", line 1449, in clone
shareopts=opts.get('shareopts'))
File "/usr/lib/python2.7/dist-packages/mercurial/hg.py", line 661, in clone
streamclonerequested=stream)
File "/usr/lib/python2.7/dist-packages/hgext/git/util.py", line 56, in inner
return f(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/hgext/git/__init__.py", line 354, in exchangepull
pullop.cgresult = repo.githandler.fetch(remote.path, heads)
File "/usr/lib/python2.7/dist-packages/hgext/git/git_handler.py", line 271, in fetch
result = self.fetch_pack(remote, heads)
File "/usr/lib/python2.7/dist-packages/hgext/git/git_handler.py", line 1230, in fetch_pack
f.write, progress.progress)
File "/usr/lib/python2.7/dist-packages/dulwich/client.py", line 1398, in fetch_pack
b"git-upload-pack", url)
File "/usr/lib/python2.7/dist-packages/dulwich/client.py", line 1282, in _discover_references
resp, read = self._http_request(url, headers, allow_compression=True)
File "/usr/lib/python2.7/dist-packages/dulwich/client.py", line 1261, in _http_request
resp = self.opener.open(req)
File "/usr/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1241, in https_open
context=self._context)
File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
raise URLError(err)
URLError: <urlopen error [Errno -2] Name or service not known>
abort: error: Name or service not known
The same error I've got once I've put git+https url in hgrc. Is there any other way assumed to keep username for https-accessible git repo stored in hgrc file?