Show More
@@ -240,8 +240,12 b' class httprepository(remoterepository):' | |||||
240 | # this only happens with Python 2.3, later versions raise URLError |
|
240 | # this only happens with Python 2.3, later versions raise URLError | |
241 | raise util.Abort(_('http error, possibly caused by proxy setting')) |
|
241 | raise util.Abort(_('http error, possibly caused by proxy setting')) | |
242 | # record the url we got redirected to |
|
242 | # record the url we got redirected to | |
243 |
|
|
243 | resp_url = resp.geturl() | |
244 | self._url = resp.geturl()[:-len(qs)] |
|
244 | if resp_url.endswith(qs): | |
|
245 | resp_url = resp_url[:-len(qs)] | |||
|
246 | if self._url != resp_url: | |||
|
247 | self.ui.status(_('real URL is %s\n') % resp_url) | |||
|
248 | self._url = resp_url | |||
245 | try: |
|
249 | try: | |
246 | proto = resp.getheader('content-type') |
|
250 | proto = resp.getheader('content-type') | |
247 | except AttributeError: |
|
251 | except AttributeError: |
General Comments 0
You need to be logged in to leave comments.
Login now