Mercurial > public > mercurial-scm > hg-stable
diff mercurial/httprepo.py @ 12969:6bd9778ae749 stable
pushkey: force HTTP POST on push and add tests (issue2489)
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 12 Nov 2010 01:21:45 -0600 |
parents | c327bfa5e831 |
children | ea68947ad0ce |
line wrap: on
line diff
--- a/mercurial/httprepo.py Wed Nov 10 17:28:24 2010 +0100 +++ b/mercurial/httprepo.py Fri Nov 12 01:21:45 2010 -0600 @@ -68,6 +68,8 @@ raise util.Abort(_('operation not supported over http')) def _callstream(self, cmd, **args): + if cmd is 'pushkey': + args['data'] = '' data = args.pop('data', None) headers = args.pop('headers', {}) self.ui.debug("sending %s command\n" % cmd)