changeset 35142:ebabc4a805c4

localrepo: specify optional callback parameter to pathauditor as a keyword
author Augie Fackler <augie@google.com>
date Fri, 03 Nov 2017 17:07:29 -0400
parents 699b2a759319
children ff80efc8f3e4
files mercurial/localrepo.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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