# HG changeset patch # User Thomas Arendsen Hein # Date 1162026059 -7200 # Node ID a27d90c9336eb0ae8ddab2804f845ab3a5f50681 # Parent 23f7d96217831943b19eb5734a76c29f3afd3e1f Stripping of query string (since 88b4755fa48f) stripped too much (issue327) rstrip(qs) not only strips qs from the right, but it continues stripping every char at the end of the URL that occurs on qs. diff -r 23f7d9621783 -r a27d90c9336e mercurial/httprepo.py --- a/mercurial/httprepo.py Fri Oct 27 23:09:46 2006 +0200 +++ b/mercurial/httprepo.py Sat Oct 28 11:00:59 2006 +0200 @@ -240,7 +240,8 @@ # this only happens with Python 2.3, later versions raise URLError raise util.Abort(_('http error, possibly caused by proxy setting')) # record the url we got redirected to - self._url = resp.geturl().rstrip(qs) + if resp.geturl().endswith(qs): + self._url = resp.geturl()[:-len(qs)] try: proto = resp.getheader('content-type') except AttributeError: