##// END OF EJS Templates
dirstate-item: use the `p2_info` property to replace more verbose call...
marmoute -
r48960:e2753a7a default
parent child Browse files
Show More
@@ -1372,7 +1372,7 b' class dirstate(object):'
1372
1372
1373 if not st and t.tracked:
1373 if not st and t.tracked:
1374 dadd(fn)
1374 dadd(fn)
1375 elif t.merged or t.from_p2:
1375 elif t.p2_info:
1376 madd(fn)
1376 madd(fn)
1377 elif t.added:
1377 elif t.added:
1378 aadd(fn)
1378 aadd(fn)
@@ -332,7 +332,7 b' class dirstatemap(_dirstatemapcommon):'
332 if fold_p2:
332 if fold_p2:
333 for f, s in pycompat.iteritems(self._map):
333 for f, s in pycompat.iteritems(self._map):
334 # Discard "merged" markers when moving away from a merge state
334 # Discard "merged" markers when moving away from a merge state
335 if s.merged or s.from_p2:
335 if s.p2_info:
336 source = self.copymap.pop(f, None)
336 source = self.copymap.pop(f, None)
337 if source:
337 if source:
338 copies[f] = source
338 copies[f] = source
@@ -604,7 +604,7 b' if rustmod is not None:'
604 # enables in-place mutation of elements of a collection while
604 # enables in-place mutation of elements of a collection while
605 # iterating it, without mutating the collection itself.
605 # iterating it, without mutating the collection itself.
606 files_with_p2_info = [
606 files_with_p2_info = [
607 f for f, s in self._map.items() if s.merged or s.from_p2
607 f for f, s in self._map.items() if s.p2_info
608 ]
608 ]
609 rust_map = self._map
609 rust_map = self._map
610 for f in files_with_p2_info:
610 for f in files_with_p2_info:
General Comments 0
You need to be logged in to leave comments. Login now