comparison hgext/relink.py @ 29639:6fd751fa58d3 stable

url: avoid re-issuing incorrect password (issue3210) Some draconian IT setups lock accounts after a small number of incorrect password attempts. Mercurial's implementation of the urllib2 authentication was causing 5 retry attempts with the same credentials, without prompting the user. The code was attempting to check whether the authorization token had changed, but unfortunately was reading the misleading 'headers' member of the request instead of using the 'get_header' accessor. Modelled on fix for Python issue 8797: https://bugs.python.org/issue8797 https://hg.python.org/cpython/rev/30e8a8f22a2a
author Kim Randell <Kim.Randell@vicon.com>
date Fri, 29 Jul 2016 12:46:07 +0100
parents a0939666b836
children d5883fd055c6
comparison
equal deleted inserted replaced
29638:491ee264b9f6 29639:6fd751fa58d3