context: add a no-op _poststatus method
authorSean Farley <sean.michael.farley@gmail.com>
Tue, 22 Apr 2014 12:51:58 -0500
changeset 21476 168283c8dedf
parent 21475 c6976a4a39db
child 21477 466964bdf4c1
context: add a no-op _poststatus method This patch adds a private _poststatus method so that certain contexts, such as workingctx, can add custom post-processing to status.
mercurial/context.py
--- a/mercurial/context.py	Tue Apr 22 12:43:20 2014 -0500
+++ b/mercurial/context.py	Tue Apr 22 12:51:58 2014 -0500
@@ -86,6 +86,14 @@
         """
         return s
 
+    def _poststatus(self, other, s, match, listignored, listclean, listunknown):
+        """provide a hook to allow child objects to postprocess status results
+
+        For example, this allows other contexts, such as workingctx, to filter
+        suspect symlinks in the case of FAT32 and NTFS filesytems.
+        """
+        return s
+
     def _buildstatus(self, other, s, match, listignored, listclean,
                         listunknown):
         """build a status with respect to another context"""