##// END OF EJS Templates
context.status: explain "caching reasons" more fully...
Martin von Zweigbergk -
r23257:37c57a7c default
parent child Browse files
Show More
@@ -96,7 +96,12 class basectx(object):
96 def _buildstatus(self, other, s, match, listignored, listclean,
96 def _buildstatus(self, other, s, match, listignored, listclean,
97 listunknown):
97 listunknown):
98 """build a status with respect to another context"""
98 """build a status with respect to another context"""
99 # load earliest manifest first for caching reasons
99 # Load earliest manifest first for caching reasons. More specifically,
100 # if you have revisions 1000 and 1001, 1001 is probably stored as a
101 # delta against 1000. Thus, if you read 1000 first, we'll reconstruct
102 # 1000 and cache it so that when you read 1001, we just need to apply a
103 # delta to what's in the cache. So that's one full reconstruction + one
104 # delta application.
100 if self.rev() is not None and self.rev() < other.rev():
105 if self.rev() is not None and self.rev() < other.rev():
101 self.manifest()
106 self.manifest()
102 mf1 = other._manifestmatches(match, s)
107 mf1 = other._manifestmatches(match, s)
General Comments 0
You need to be logged in to leave comments. Login now