Doesn't work with hg 4.3.1
Created originally on Bitbucket by Anton Pogonets
Stop working when hg updates to 4.3.1. (4.2.2 is fine) macOs 10.12, python 2.7 installed with easy_install
#!python
*** failed to import extension mercurial_keyring: <mercurial.cmdutil.command object at 0x102a622d0> is not a Python function
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.13 (default, Jul 18 2017, 09:17:00) [GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)]
** Mercurial Distributed SCM (version 4.3.1)
** Extensions loaded:
Traceback (most recent call last):
File "/usr/local/bin/hg", line 45, in <module>
mercurial.dispatch.run()
File "/usr/local/Cellar/mercurial/4.3.1/lib/python2.7/site-packages/mercurial/dispatch.py", line 81, in run
status = (dispatch(req) or 0) & 255
File "/usr/local/Cellar/mercurial/4.3.1/lib/python2.7/site-packages/mercurial/dispatch.py", line 162, in dispatch
ret = _runcatch(req)
File "/usr/local/Cellar/mercurial/4.3.1/lib/python2.7/site-packages/mercurial/dispatch.py", line 302, in _runcatch
return _callcatch(ui, _runcatchfunc)
File "/usr/local/Cellar/mercurial/4.3.1/lib/python2.7/site-packages/mercurial/dispatch.py", line 310, in _callcatch
return scmutil.callcatch(ui, func)
File "/usr/local/Cellar/mercurial/4.3.1/lib/python2.7/site-packages/mercurial/scmutil.py", line 150, in callcatch
return func()
File "/usr/local/Cellar/mercurial/4.3.1/lib/python2.7/site-packages/mercurial/dispatch.py", line 292, in _runcatchfunc
return _dispatch(req)
File "/usr/local/Cellar/mercurial/4.3.1/lib/python2.7/site-packages/mercurial/dispatch.py", line 896, in _dispatch
cmdpats, cmdoptions)
File "/usr/local/Cellar/mercurial/4.3.1/lib/python2.7/site-packages/mercurial/dispatch.py", line 658, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/usr/local/Cellar/mercurial/4.3.1/lib/python2.7/site-packages/mercurial/dispatch.py", line 904, in _runcommand
return cmdfunc()
File "/usr/local/Cellar/mercurial/4.3.1/lib/python2.7/site-packages/mercurial/dispatch.py", line 893, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
File "/usr/local/Cellar/mercurial/4.3.1/lib/python2.7/site-packages/mercurial/util.py", line 1077, in check
return func(*args, **kwargs)
File "/usr/local/Cellar/mercurial/4.3.1/lib/python2.7/site-packages/mercurial/commands.py", line 1410, in clone
shareopts=opts.get('shareopts'))
File "/usr/local/Cellar/mercurial/4.3.1/lib/python2.7/site-packages/mercurial/hg.py", line 483, in clone
srcpeer = peer(ui, peeropts, source)
File "/usr/local/Cellar/mercurial/4.3.1/lib/python2.7/site-packages/mercurial/hg.py", line 178, in peer
return _peerorrepo(rui, path, create).peer()
File "/usr/local/Cellar/mercurial/4.3.1/lib/python2.7/site-packages/mercurial/hg.py", line 153, in _peerorrepo
obj = _peerlookup(path).instance(ui, path, create)
File "/usr/local/Cellar/mercurial/4.3.1/lib/python2.7/site-packages/mercurial/httppeer.py", line 391, in instance
inst._fetchcaps()
File "/usr/local/Cellar/mercurial/4.3.1/lib/python2.7/site-packages/mercurial/httppeer.py", line 123, in _fetchcaps
self.caps = set(self._call('capabilities').split())
File "/usr/local/Cellar/mercurial/4.3.1/lib/python2.7/site-packages/mercurial/httppeer.py", line 301, in _call
fp = self._callstream(cmd, **args)
File "/usr/local/Cellar/mercurial/4.3.1/lib/python2.7/site-packages/mercurial/httppeer.py", line 230, in _callstream
resp = self.urlopener.open(req)
File "/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 467, in error
result = self._call_chain(*args)
File "/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1098, in http_error_401
host, req, headers)
File "/usr/local/Cellar/mercurial/4.3.1/lib/python2.7/site-packages/mercurial/url.py", line 377, in http_error_auth_reqed
self, auth_header, host, req, headers)
File "build/bdist.macosx-10.12-x86_64/egg/mercurial_keyring.py", line 576, in digest_http_error_auth_reqed
AttributeError: 'NoneType' object has no attribute 'orig'