##// END OF EJS Templates
manifest: add readfast method
Matt Mackall -
r13711:ed913fd7 default
parent child Browse files
Show More
@@ -38,6 +38,13 b' class manifest(revlog.revlog):'
38 r = self.rev(node)
38 r = self.rev(node)
39 return self.parse(mdiff.patchtext(self.revdiff(self.deltaparent(r), r)))
39 return self.parse(mdiff.patchtext(self.revdiff(self.deltaparent(r), r)))
40
40
41 def readfast(self, node):
42 '''use the faster of readdelta or read'''
43 r = self.rev(node)
44 if self.deltaparent(r) in self.parentrevs(r):
45 return self.readdelta(node)
46 return self.read(node)
47
41 def read(self, node):
48 def read(self, node):
42 if node == revlog.nullid:
49 if node == revlog.nullid:
43 return manifestdict() # don't upset local cache
50 return manifestdict() # don't upset local cache
General Comments 0
You need to be logged in to leave comments. Login now