[PATCH 02 of 10] scmutil: delegate mustaudit property to the real opener
Mads Kiilerich
mads at kiilerich.com
Thu Sep 13 16:56:34 CDT 2012
Bryan O'Sullivan wrote, On 09/13/2012 09:01 PM:
> # HG changeset patch
> # User Bryan O'Sullivan <bryano at fb.com>
> # Date 1347562628 25200
> # Node ID d89e56d72ecf0ef69b1650aac774667297969622
> # Parent 5d2ae7e9a2bc1dac14143ac9e9a3885ba0049139
> scmutil: delegate mustaudit property to the real opener
store: ...
This - and the previous change - seems a bit strange without a comment
that the mustaudit property so far is unused.
/Mads
> diff --git a/mercurial/store.py b/mercurial/store.py
> --- a/mercurial/store.py
> +++ b/mercurial/store.py
> @@ -373,6 +373,14 @@
> self.fncache = fnc
> self.encode = encode
>
> + def _getmustaudit(self):
> + return self.opener.mustaudit
> +
> + def _setmustaudit(self, onoff):
> + self.opener.mustaudit = onoff
> +
> + mustaudit = property(_getmustaudit, _setmustaudit)
> +
> def __call__(self, path, mode='r', *args, **kw):
> if mode not in ('r', 'rb') and path.startswith('data/'):
> self.fncache.add(path)
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
More information about the Mercurial-devel
mailing list