##// END OF EJS Templates
context: use new API instead of `normal` during fixup post status...
marmoute -
r48505:6975cef3 default
parent child Browse files
Show More
@@ -1838,9 +1838,15 b' class workingctx(committablectx):'
1838 # wlock can invalidate the dirstate, so cache normal _after_
1838 # wlock can invalidate the dirstate, so cache normal _after_
1839 # taking the lock
1839 # taking the lock
1840 with self._repo.wlock(False):
1840 with self._repo.wlock(False):
1841 if self._repo.dirstate.identity() == oldid:
1841 dirstate = self._repo.dirstate
1842 if dirstate.identity() == oldid:
1842 if fixup:
1843 if fixup:
1843 normal = self._repo.dirstate.normal
1844 if dirstate.pendingparentchange():
1845 normal = lambda f: dirstate.update_file(
1846 f, p1_tracked=True, wc_tracked=True
1847 )
1848 else:
1849 normal = dirstate.set_clean
1844 for f in fixup:
1850 for f in fixup:
1845 normal(f)
1851 normal(f)
1846 # write changes out explicitly, because nesting
1852 # write changes out explicitly, because nesting
General Comments 0
You need to be logged in to leave comments. Login now