comparison 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
comparison
equal deleted inserted replaced
12967:70b043405400 12969:6bd9778ae749
66 66
67 def lock(self): 67 def lock(self):
68 raise util.Abort(_('operation not supported over http')) 68 raise util.Abort(_('operation not supported over http'))
69 69
70 def _callstream(self, cmd, **args): 70 def _callstream(self, cmd, **args):
71 if cmd is 'pushkey':
72 args['data'] = ''
71 data = args.pop('data', None) 73 data = args.pop('data', None)
72 headers = args.pop('headers', {}) 74 headers = args.pop('headers', {})
73 self.ui.debug("sending %s command\n" % cmd) 75 self.ui.debug("sending %s command\n" % cmd)
74 q = {"cmd": cmd} 76 q = {"cmd": cmd}
75 q.update(args) 77 q.update(args)