Patchwork [04,of,14] auditor: add simple comment about repo.auditor and al

login
register
mail settings
Submitter Pierre-Yves David
Date July 2, 2017, 2:56 a.m.
Message ID <907925f744b8f7886741.1498964189@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/21879/
State Accepted
Headers show

Comments

Pierre-Yves David - July 2, 2017, 2:56 a.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1498954745 -7200
#      Sun Jul 02 02:19:05 2017 +0200
# Node ID 907925f744b8f7886741c4ea278166b58df82f96
# Parent  7c6b7f3e14d5b79c80057c356e447911ded68140
# EXP-Topic vfs.ward
# Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
#              hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r 907925f744b8
auditor: add simple comment about repo.auditor and al

Every once in a while, I get confused by what these are. Let us add a comment.

Patch

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -286,6 +286,8 @@  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
         self.auditor = pathutil.pathauditor(self.root, self._checknested)
         self.nofsauditor = pathutil.pathauditor(self.root, self._checknested,
                                                 realfs=False)