##// END OF EJS Templates
revlog: make chainbase cache its result for the correct revision...
Paul Morelle -
r38187:fc72beec default
parent child Browse files
Show More
@@ -877,10 +877,11 b' class revlog(object):'
877 877 return base
878 878
879 879 index = self.index
880 base = index[rev][3]
881 while base != rev:
882 rev = base
883 base = index[rev][3]
880 iterrev = rev
881 base = index[iterrev][3]
882 while base != iterrev:
883 iterrev = base
884 base = index[iterrev][3]
884 885
885 886 self._chainbasecache[rev] = base
886 887 return base
General Comments 0
You need to be logged in to leave comments. Login now