httprepo: always store the response url (issue1968)
authorSteve Borho <steve@borho.org>
Tue, 05 Jan 2010 10:20:28 -0600
changeset 10208 37c4ce51a12d
parent 10207 f5e55f1ca927
child 10212 3ab391dd5ec5
httprepo: always store the response url (issue1968) Fixes a regression caused by 54b518fc6671
mercurial/httprepo.py
--- a/mercurial/httprepo.py	Mon Jan 04 01:11:18 2010 +0100
+++ b/mercurial/httprepo.py	Tue Jan 05 10:20:28 2010 -0600
@@ -95,7 +95,7 @@
             resp_url = resp_url[:-len(qs)]
         if self._url.rstrip('/') != resp_url.rstrip('/'):
             self.ui.status(_('real URL is %s\n') % resp_url)
-            self._url = resp_url
+        self._url = resp_url
         try:
             proto = resp.getheader('content-type')
         except AttributeError: