[PATCH 1 of 2] localrepo: specify optional callback parameter to pathauditor as a keyword

Gregory Szorc gregory.szorc at gmail.com
Mon Nov 20 22:42:10 EST 2017


On Mon, Nov 20, 2017 at 3:21 PM, Augie Fackler <raf at durin42.com> wrote:

> # HG changeset patch
> # User Augie Fackler <augie at google.com>
> # Date 1509743249 14400
> #      Fri Nov 03 17:07:29 2017 -0400
> # Node ID 263c05286affa42590c28403bb882564b844b8cf
> # Parent  f6f8b7c8919a5aa1f711e3463f7dd9afa6b734c5
> localrepo: specify optional callback parameter to pathauditor as a keyword
>

Queued, thanks.


>
> diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
> --- a/mercurial/localrepo.py
> +++ b/mercurial/localrepo.py
> @@ -366,9 +366,10 @@ class localrepository(object):
>          self.origroot = path
>          # These auditor are not used by the vfs,
>          # only used when writing this comment: basectx.match
> -        self.auditor = pathutil.pathauditor(self.root, self._checknested)
> -        self.nofsauditor = pathutil.pathauditor(self.root,
> self._checknested,
> -                                                realfs=False, cached=True)
> +        self.auditor = pathutil.pathauditor(
> +            self.root, callback=self._checknested)
> +        self.nofsauditor = pathutil.pathauditor(
> +            self.root, callback=self._checknested, realfs=False,
> cached=True)
>          self.baseui = baseui
>          self.ui = baseui.copy()
>          self.ui.copy = baseui.copy # prevent copying repo configuration
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20171120/19584a51/attachment-0001.html>


More information about the Mercurial-devel mailing list