comparison mercurial/httprepo.py @ 1870:8a8ab47cccde

make push over http print good error message.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Thu, 09 Mar 2006 12:18:59 -0800
parents 50de0887bbcd
children 1a09814a5b1f
comparison
equal deleted inserted replaced
1869:42c76ec7a8d4 1870:8a8ab47cccde
65 urllib2.install_opener(opener) 65 urllib2.install_opener(opener)
66 66
67 def dev(self): 67 def dev(self):
68 return -1 68 return -1
69 69
70 def lock(self):
71 raise util.Abort(_('operation not supported over http'))
72
70 def do_cmd(self, cmd, **args): 73 def do_cmd(self, cmd, **args):
71 self.ui.debug(_("sending %s command\n") % cmd) 74 self.ui.debug(_("sending %s command\n") % cmd)
72 q = {"cmd": cmd} 75 q = {"cmd": cmd}
73 q.update(args) 76 q.update(args)
74 qs = urllib.urlencode(q) 77 qs = urllib.urlencode(q)