mercurial/context.py
changeset 21477 466964bdf4c1
parent 21476 168283c8dedf
child 21480 d19f491e5d5b
--- a/mercurial/context.py	Tue Apr 22 12:51:58 2014 -0500
+++ b/mercurial/context.py	Tue Apr 22 12:59:22 2014 -0500
@@ -1294,6 +1294,16 @@
         """
         return self._dirstatestatus(match, listignored, listclean, listunknown)
 
+    def _poststatus(self, other, s, match, listignored, listclean, listunknown):
+        """override the parent hook with a filter for suspect symlinks
+
+        We use this poststatus hook to filter out symlinks that might have
+        accidentally ended up with the entire contents of the file they are
+        susposed to be linking to.
+        """
+        s[0] = self._filtersuspectsymlink(s[0])
+        return s
+
     def _dirstatestatus(self, match=None, ignored=False, clean=False,
                         unknown=False):
         '''Gets the status from the dirstate -- internal use only.'''