# HG changeset patch # User Vadim Gelfer # Date 1141935539 28800 # Node ID 8a8ab47cccdebf628ffa389a2cee177f7ad1f5b5 # Parent 42c76ec7a8d4ad18f03af0d52b7d84268e2278bc make push over http print good error message. diff -r 42c76ec7a8d4 -r 8a8ab47cccde mercurial/httprepo.py --- a/mercurial/httprepo.py Thu Mar 09 08:27:49 2006 +0100 +++ b/mercurial/httprepo.py Thu Mar 09 12:18:59 2006 -0800 @@ -67,6 +67,9 @@ def dev(self): return -1 + def lock(self): + raise util.Abort(_('operation not supported over http')) + def do_cmd(self, cmd, **args): self.ui.debug(_("sending %s command\n") % cmd) q = {"cmd": cmd}