changeset 14075:bc101902a68d

revlog: introduce _chunkbase to allow filelog to override Used by revlog.revision to retrieve the base-chunk in a delta chain.
author Sune Foldager <cryo@cyanite.org>
date Sat, 30 Apr 2011 16:33:47 +0200
parents e8271159c8c2
children 924c82157d46
files mercurial/revlog.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Sat Apr 30 16:32:50 2011 +0200
+++ b/mercurial/revlog.py	Sat Apr 30 16:33:47 2011 +0200
@@ -822,6 +822,9 @@
     def _chunk(self, rev):
         return decompress(self._chunkraw(rev, rev))
 
+    def _chunkbase(self, rev):
+        return self._chunk(rev)
+
     def _chunkclear(self):
         self._chunkcache = (0, '')
 
@@ -884,7 +887,7 @@
 
         self._chunkraw(base, rev)
         if text is None:
-            text = self._chunk(base)
+            text = self._chunkbase(base)
 
         bins = [self._chunk(r) for r in chain]
         text = mdiff.patches(text, bins)