changeset 8678:43598055bae8

match: document bad callback semantics
author Matt Mackall <mpm@selenic.com>
date Sun, 31 May 2009 17:54:18 -0500
parents 34df078b8b1b
children 32537b12e091
files mercurial/match.py
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/match.py	Sun May 31 17:54:18 2009 -0500
+++ b/mercurial/match.py	Sun May 31 17:54:18 2009 -0500
@@ -81,6 +81,13 @@
         for f in self._files:
             yield f
     def bad(self, f, msg):
+        '''callback for each explicit file that can't be
+        found/accessed, with an error message
+
+        return True to keep file in results, False to discard
+
+        default behavior is to silently keep
+        '''
         return True
     def dir(self, f):
         pass