changeset 21476:168283c8dedf

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.
author Sean Farley <sean.michael.farley@gmail.com>
date Tue, 22 Apr 2014 12:51:58 -0500
parents c6976a4a39db
children 466964bdf4c1
files mercurial/context.py
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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"""