Issue #3790 on hold

pull from remote server caused UnboundLocalError in urllib2

Anonymous created an issue

If I do a hg pull --verbose https://dedd-mercurial/Projekte_LLT_FlashProgrammer then the bugreport in the attachment ist generated

** Mercurial version (3.0.1).  TortoiseHg version (3.0.1)
** Command: 
** CWD: g:\tmp\Projekte_LLT_FlashProgrammer-clone
** Encoding: cp1252
** Extensions loaded: convert, extdiff, highlight, largefiles, mercurial_keyring, strip, mq, purge, rebase, keyword, churn, notify, hggit, hgcr-gui-qt
** Python version: 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1')
** Processor architecture: x64
** Qt-4.8.5 PyQt-4.10.3 QScintilla-2.7.2
Traceback (most recent call last):
  File "tortoisehg\hgqt\thread.pyo", line 304, in run
  File "tortoisehg\util\hglib.pyo", line 710, in dispatch
  File "mercurial\dispatch.pyo", line 819, in _dispatch
  File "mercurial\dispatch.pyo", line 599, in runcommand
  File "mercurial\dispatch.pyo", line 910, in _runcommand
  File "mercurial\dispatch.pyo", line 881, in checkargs
  File "mercurial\dispatch.pyo", line 816, in <lambda>
  File "mercurial\util.pyo", line 518, in check
  File "mercurial\extensions.pyo", line 151, in wrap
  File "mercurial\util.pyo", line 518, in check
  File "hgext\mq.pyo", line 3387, in mqcommand
  File "mercurial\util.pyo", line 518, in check
  File "mercurial\extensions.pyo", line 151, in wrap
  File "mercurial\util.pyo", line 518, in check
  File "hgext\rebase.pyo", line 933, in pullrebase
  File "mercurial\util.pyo", line 518, in check
  File "mercurial\extensions.pyo", line 151, in wrap
  File "mercurial\util.pyo", line 518, in check
  File "hgext\largefiles\overrides.pyo", line 721, in overridepull
  File "mercurial\util.pyo", line 518, in check
  File "mercurial\commands.pyo", line 4583, in pull
  File "mercurial\extensions.pyo", line 196, in wrap
  File "hggit\__init__.pyo", line 206, in peer
  File "mercurial\hg.pyo", line 129, in peer
  File "mercurial\hg.pyo", line 106, in _peerorrepo
  File "mercurial\httppeer.pyo", line 261, in instance
  File "mercurial\httppeer.pyo", line 58, in _fetchcaps
  File "mercurial\httppeer.pyo", line 172, in _call
  File "hgext\largefiles\proto.pyo", line 176, in httprepocallstream
  File "mercurial\httppeer.pyo", line 119, in _callstream
  File "urllib2.pyo", line 410, in open
  File "urllib2.pyo", line 523, in http_response
  File "urllib2.pyo", line 442, in error
  File "urllib2.pyo", line 382, in _call_chain
  File "urllib2.pyo", line 1085, in http_error_401
  File "mercurial\url.pyo", line 415, in http_error_auth_reqed
  File "hgext\mercurial_keyring.pyo", line 408, in digest_http_error_auth_reqed
  File "urllib2.pyo", line 970, in http_error_auth_reqed
  File "urllib2.pyo", line 975, in retry_http_digest_auth
  File "urllib2.pyo", line 1006, in get_authorization
  File "urllib2.pyo", line 1065, in get_algorithm_impls
UnboundLocalError: local variable 'H' referenced before assignment