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

Augie Fackler raf at durin42.com
Mon Nov 20 18:21:16 EST 2017


# 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

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


More information about the Mercurial-devel mailing list