comparison mercurial/context.py @ 47356:04d1f17f49e7

dirstate-v2: Write .hg/dirstate back to disk on directory cache changes Differential Revision: https://phab.mercurial-scm.org/D10827
author Simon Sapin <simon.sapin@octobus.net>
date Mon, 31 May 2021 18:35:44 +0200
parents b338d831d18c
children 0cef28b121a4
comparison
equal deleted inserted replaced
47355:7138c863d0a1 47356:04d1f17f49e7
1838 return modified, deleted, fixup 1838 return modified, deleted, fixup
1839 1839
1840 def _poststatusfixup(self, status, fixup): 1840 def _poststatusfixup(self, status, fixup):
1841 """update dirstate for files that are actually clean""" 1841 """update dirstate for files that are actually clean"""
1842 poststatus = self._repo.postdsstatus() 1842 poststatus = self._repo.postdsstatus()
1843 if fixup or poststatus: 1843 if fixup or poststatus or self._repo.dirstate._dirty:
1844 try: 1844 try:
1845 oldid = self._repo.dirstate.identity() 1845 oldid = self._repo.dirstate.identity()
1846 1846
1847 # updating the dirstate is optional 1847 # updating the dirstate is optional
1848 # so we don't wait on the lock 1848 # so we don't wait on the lock