Patchwork [2,of,2] localrepo: update comments around path auditors

login
register
mail settings
Submitter Augie Fackler
Date Nov. 20, 2017, 11:21 p.m.
Message ID <8687d23069d453b9fb53.1511220077@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/25681/
State Accepted
Headers show

Comments

Augie Fackler - Nov. 20, 2017, 11:21 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1509743996 14400
#      Fri Nov 03 17:19:56 2017 -0400
# Node ID 8687d23069d453b9fb5385eb921931f3384e515f
# Parent  263c05286affa42590c28403bb882564b844b8cf
localrepo: update comments around path auditors

Patch

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -364,10 +364,12 @@  class localrepository(object):
         self.root = self.wvfs.base
         self.path = self.wvfs.join(".hg")
         self.origroot = path
-        # These auditor are not used by the vfs,
-        # only used when writing this comment: basectx.match
+        # This is only used by context.workingctx.match in order to
+        # detect files in subrepos.
         self.auditor = pathutil.pathauditor(
             self.root, callback=self._checknested)
+        # This is only used by context.basectx.match in order to detect
+        # files in subrepos.
         self.nofsauditor = pathutil.pathauditor(
             self.root, callback=self._checknested, realfs=False, cached=True)
         self.baseui = baseui