localrepo: specify optional callback parameter to pathauditor as a keyword
authorAugie Fackler <augie@google.com>
Fri, 03 Nov 2017 17:07:29 -0400
changeset 35121 ebabc4a805c4
parent 35120 699b2a759319
child 35122 ff80efc8f3e4
localrepo: specify optional callback parameter to pathauditor as a keyword
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Mon Nov 13 22:20:12 2017 -0800
+++ b/mercurial/localrepo.py	Fri Nov 03 17:07:29 2017 -0400
@@ -366,9 +366,10 @@
         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