[PATCH] match: add comments to explain explicitdir and traversedir

Siddharth Agarwal sid0 at fb.com
Fri May 3 17:38:27 CDT 2013


# HG changeset patch
# User Siddharth Agarwal <sid0 at fb.com>
# Date 1367620578 25200
#      Fri May 03 15:36:18 2013 -0700
# Node ID f53ecf1b838b0fb88d07821b891c346714862fd1
# Parent  2157f457e73c99b160229dcc5db4b4c49202e6ff
match: add comments to explain explicitdir and traversedir

diff -r 2157f457e73c -r f53ecf1b838b mercurial/match.py
--- a/mercurial/match.py	Sun Apr 28 15:45:17 2013 -0700
+++ b/mercurial/match.py	Fri May 03 15:36:18 2013 -0700
@@ -119,7 +119,11 @@ class match(object):
         found/accessed, with an error message
         '''
         pass
+    # If this is set, it will be called when an explicitly listed directory is
+    # visited.
     explicitdir = None
+    # If this is set, it will be called when a directory discovered by recursive
+    # traversal is visited.
     traversedir = None
     def missing(self, f):
         pass


More information about the Mercurial-devel mailing list