diff mercurial/statichttprepo.py @ 7005:7739b61897df

do not pretend to lock static-http repositories (issue994)
author Martin Geisler <mg@daimi.au.dk>
date Mon, 08 Sep 2008 11:32:53 +0200
parents 907e4e9bd3c4
children 3d080733a339
line wrap: on
line diff
--- a/mercurial/statichttprepo.py	Mon Sep 08 00:50:34 2008 +0200
+++ b/mercurial/statichttprepo.py	Mon Sep 08 11:32:53 2008 +0200
@@ -74,6 +74,9 @@
     def local(self):
         return False
 
+    def lock(self, wait=True):
+        raise util.Abort(_('cannot lock static-http repository'))
+
 def instance(ui, path, create):
     if create:
         raise util.Abort(_('cannot create new static-http repository'))