comparison mercurial/context.py @ 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 6d7dcabb843f
children 466964bdf4c1
comparison
equal deleted inserted replaced
21475:c6976a4a39db 21476:168283c8dedf
81 def _prestatus(self, other, s, match, listignored, listclean, listunknown): 81 def _prestatus(self, other, s, match, listignored, listclean, listunknown):
82 """provide a hook to allow child objects to preprocess status results 82 """provide a hook to allow child objects to preprocess status results
83 83
84 For example, this allows other contexts, such as workingctx, to query 84 For example, this allows other contexts, such as workingctx, to query
85 the dirstate before comparing the manifests. 85 the dirstate before comparing the manifests.
86 """
87 return s
88
89 def _poststatus(self, other, s, match, listignored, listclean, listunknown):
90 """provide a hook to allow child objects to postprocess status results
91
92 For example, this allows other contexts, such as workingctx, to filter
93 suspect symlinks in the case of FAT32 and NTFS filesytems.
86 """ 94 """
87 return s 95 return s
88 96
89 def _buildstatus(self, other, s, match, listignored, listclean, 97 def _buildstatus(self, other, s, match, listignored, listclean,
90 listunknown): 98 listunknown):