comparison mercurial/context.py @ 32813:6d73b7ff8f92

workingctx: also pass status tuple into poststatusfixup fsmonitor is going to need this to compute its set of notable files to persist.
author Siddharth Agarwal <sid0@fb.com>
date Mon, 12 Jun 2017 13:56:43 -0700
parents add613cddcb6
children 2083d1643d69
comparison
equal deleted inserted replaced
32812:add613cddcb6 32813:6d73b7ff8f92
1738 # it's in the dirstate. 1738 # it's in the dirstate.
1739 deleted.append(f) 1739 deleted.append(f)
1740 1740
1741 return modified, deleted, fixup 1741 return modified, deleted, fixup
1742 1742
1743 def _poststatusfixup(self, fixup): 1743 def _poststatusfixup(self, status, fixup):
1744 """update dirstate for files that are actually clean""" 1744 """update dirstate for files that are actually clean"""
1745 if fixup: 1745 if fixup:
1746 try: 1746 try:
1747 oldid = self._repo.dirstate.identity() 1747 oldid = self._repo.dirstate.identity()
1748 1748
1790 s.deleted.extend(deleted2) 1790 s.deleted.extend(deleted2)
1791 1791
1792 if fixup and listclean: 1792 if fixup and listclean:
1793 s.clean.extend(fixup) 1793 s.clean.extend(fixup)
1794 1794
1795 self._poststatusfixup(fixup) 1795 self._poststatusfixup(s, fixup)
1796 1796
1797 if match.always(): 1797 if match.always():
1798 # cache for performance 1798 # cache for performance
1799 if s.unknown or s.ignored or s.clean: 1799 if s.unknown or s.ignored or s.clean:
1800 # "_status" is cached with list*=False in the normal route 1800 # "_status" is cached with list*=False in the normal route