py3 hggit not auth to https github
hallow! works on win8, installed hggit f57d5dba6ff1
try to pull from github https remote. it do not ask username/password, but just crushes:
contiki.hggit% % hg pull --verbose --force git+https://github.com/bkozak-scanimetrics/contiki-ng.git
pulling from git+https://github.com/bkozak-scanimetrics/contiki-ng.git
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)]
** Mercurial Distributed SCM (version 5.4)
** Extensions loaded: convert, strip, mq, rebase, record, transplant, highlight, show, split, commitextras, fix, uncommit, share, hggit, censor, histedit, narrow, closehead, remotenames, schemes, eol, tortoisehg.util.hgcommands, tortoisehg.util.partialcommit, tortoisehg.util.pipeui, tortoisehg.util.win32ill, tortoisehg.util.hgdispatch
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)]
** Mercurial Distributed SCM (version 5.4)
** Extensions loaded: convert, strip, mq, rebase, record, transplant, highlight, show, split, commitextras, fix, uncommit, share, hggit, censor, histedit, narrow, closehead, remotenames, schemes, eol, tortoisehg.util.hgcommands, tortoisehg.util.partialcommit, tortoisehg.util.pipeui, tortoisehg.util.win32ill, tortoisehg.util.hgdispatch
Traceback (most recent call last):
File "D:\projects\hg\thg\thg.work\venv.py38\Scripts\hg", line 43, in <module>
dispatch.run()
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\dispatch.py", line 112, in run
status = dispatch(req)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\dispatch.py", line 298, in dispatch
ret = _runcatch(req) or 0
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\dispatch.py", line 472, in _runcatch
return _callcatch(ui, _runcatchfunc)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\dispatch.py", line 481, in _callcatch
return scmutil.callcatch(ui, func)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\scmutil.py", line 152, in callcatch
return func()
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\dispatch.py", line 462, in _runcatchfunc
return _dispatch(req)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\dispatch.py", line 1225, in _dispatch
return runcommand(
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\dispatch.py", line 910, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\dispatch.py", line 1237, in _runcommand
return cmdfunc()
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\dispatch.py", line 1223, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\util.py", line 1864, in check
return func(*args, **kwargs)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\util.py", line 1864, in check
return func(*args, **kwargs)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\hgext\mq.py", line 4218, in mqcommand
return orig(ui, repo, *args, **kwargs)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\util.py", line 1864, in check
return func(*args, **kwargs)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\commands.py", line 6510, in serve
return server.runservice(opts, initfn=service.init, runfn=service.run)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\server.py", line 164, in runservice
return runfn()
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\commandserver.py", line 429, in run
return sv.serve()
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\commandserver.py", line 363, in serve
while self.serveone():
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\commandserver.py", line 337, in serveone
handler(self)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\commandserver.py", line 321, in runcommand
ret = dispatch.dispatch(req) & 255
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\dispatch.py", line 298, in dispatch
ret = _runcatch(req) or 0
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\dispatch.py", line 472, in _runcatch
return _callcatch(ui, _runcatchfunc)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\dispatch.py", line 481, in _callcatch
return scmutil.callcatch(ui, func)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\scmutil.py", line 152, in callcatch
return func()
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\dispatch.py", line 462, in _runcatchfunc
return _dispatch(req)
File "D:\projects\hg\thg\thg.work\tortoisehg\util\hgdispatch.py", line 21, in _dispatch
return orig(req)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\dispatch.py", line 1225, in _dispatch
return runcommand(
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\dispatch.py", line 910, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\dispatch.py", line 1237, in _runcommand
return cmdfunc()
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\dispatch.py", line 1223, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\util.py", line 1864, in check
return func(*args, **kwargs)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\util.py", line 1864, in check
return func(*args, **kwargs)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\hgext\mq.py", line 4218, in mqcommand
return orig(ui, repo, *args, **kwargs)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\util.py", line 1864, in check
return func(*args, **kwargs)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\util.py", line 1864, in check
return func(*args, **kwargs)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\hgext\narrow\narrowcommands.py", line 148, in pullnarrowcmd
return orig(ui, repo, *args, **opts)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\util.py", line 1864, in check
return func(*args, **kwargs)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\util.py", line 1864, in check
return func(*args, **kwargs)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\hgext\rebase.py", line 2115, in pullrebase
ret = orig(ui, repo, *args, **opts)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\util.py", line 1864, in check
return func(*args, **kwargs)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\mercurial\commands.py", line 5456, in pull
modheads = exchange.pull(
File "D:/projects/hg/hg-git\hggit\util.py", line 64, in inner
return f(*args, **kwargs)
File "D:/projects/hg/hg-git\hggit\__init__.py", line 368, in exchangepull
pullop.cgresult = repo.githandler.fetch(remote.path, heads)
File "D:/projects/hg/hg-git\hggit\git_handler.py", line 283, in fetch
result = self.fetch_pack(remote, heads)
File "D:/projects/hg/hg-git\hggit\git_handler.py", line 1223, in fetch_pack
ret = localclient.fetch_pack(path, determine_wants, graphwalker,
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\dulwich-0.20.5-py3.8-win-amd64.egg\dulwich\client.py", line 1784, in fetch_pack
refs, server_capabilities, url = self._discover_references(
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\dulwich-0.20.5-py3.8-win-amd64.egg\dulwich\client.py", line 1665, in _discover_references
resp, read = self._http_request(url, headers, allow_compression=True)
File "D:\projects\hg\thg\thg.work\venv.py38\lib\site-packages\dulwich-0.20.5-py3.8-win-amd64.egg\dulwich\client.py", line 1635, in _http_request
raise HTTPUnauthorized(resp.getheader('WWW-Authenticate'))
dulwich.client.HTTPUnauthorized: No valid credentials provided
cmdserver: процесс завершился неожиданно с кодом 1
Edited by alexrayne