comparison mercurial/httprepo.py @ 10208:37c4ce51a12d

httprepo: always store the response url (issue1968) Fixes a regression caused by 54b518fc6671
author Steve Borho <steve@borho.org>
date Tue, 05 Jan 2010 10:20:28 -0600
parents 54b518fc6671
children d6512b3e9ac0
comparison
equal deleted inserted replaced
10207:f5e55f1ca927 10208:37c4ce51a12d
93 resp_url = resp.geturl() 93 resp_url = resp.geturl()
94 if resp_url.endswith(qs): 94 if resp_url.endswith(qs):
95 resp_url = resp_url[:-len(qs)] 95 resp_url = resp_url[:-len(qs)]
96 if self._url.rstrip('/') != resp_url.rstrip('/'): 96 if self._url.rstrip('/') != resp_url.rstrip('/'):
97 self.ui.status(_('real URL is %s\n') % resp_url) 97 self.ui.status(_('real URL is %s\n') % resp_url)
98 self._url = resp_url 98 self._url = resp_url
99 try: 99 try:
100 proto = resp.getheader('content-type') 100 proto = resp.getheader('content-type')
101 except AttributeError: 101 except AttributeError:
102 proto = resp.headers['content-type'] 102 proto = resp.headers['content-type']
103 103