diff -r 22565ddb28e7 -r 970150ddaaf8 mercurial/httprepo.py --- a/mercurial/httprepo.py Mon Mar 07 15:45:10 2011 -0600 +++ b/mercurial/httprepo.py Mon Mar 07 15:37:11 2011 +0800 @@ -73,8 +73,7 @@ data = args.pop('data', None) headers = args.pop('headers', {}) self.ui.debug("sending %s command\n" % cmd) - q = {"cmd": cmd} - q.update(args) + q = [('cmd', cmd)] + sorted(args.items()) qs = '?%s' % urllib.urlencode(q) cu = "%s%s" % (self._url, qs) req = urllib2.Request(cu, data, headers)