do not pretend to lock static-http repositories
Martin Geisler
mg at daimi.au.dk
Wed Aug 13 14:57:04 CDT 2008
Martin Geisler <mg at daimi.au.dk> writes:
> # HG changeset patch
> # User Martin Geisler <mg at daimi.au.dk>
> # Date 1218646032 -7200
> # Node ID b0b9bd3724488df16b037a90f78035d752f78c7f
> # Parent 11229144aa01c91cd83cfee630da400956577d38
> do not pretend to lock static-http repositories
>
> diff -r 11229144aa01 -r b0b9bd372448 mercurial/statichttprepo.py
> --- a/mercurial/statichttprepo.py Tue Aug 12 17:47:08 2008 +0200
> +++ b/mercurial/statichttprepo.py Wed Aug 13 18:47:12 2008 +0200
> @@ -76,6 +76,9 @@
> def local(self):
> return False
>
> + def lock(self, wait=True):
> + raise util.Abort(_('cannot lock static-http repository'))
This comes up when trying to push to a static-http repository.
I would have liked an error message like "cannot push to a static-http
repository" or something similar, but I don't see where to intercept
the push before it attempts to take the lock.
--
Martin Geisler
VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multi-Party Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20080813/2588dae9/attachment.pgp
More information about the Mercurial-devel
mailing list