diff mercurial/revlog.py @ 30210:5e4f16874a9f

revlog: make 'storedeltachains' a "public" attribute The next changeset will make that attribute read by the changegroup packer. We make it "public" beforehand.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Fri, 14 Oct 2016 02:25:08 +0200
parents 5e72129d75ed
children 0986f225c149
line wrap: on
line diff
--- a/mercurial/revlog.py	Mon Oct 17 22:51:22 2016 -0700
+++ b/mercurial/revlog.py	Fri Oct 14 02:25:08 2016 +0200
@@ -297,7 +297,7 @@
             raise RevlogError(_("index %s unknown format %d")
                               % (self.indexfile, fmt))
 
-        self._storedeltachains = True
+        self.storedeltachains = True
 
         self._io = revlogio()
         if self.version == REVLOGV0:
@@ -1471,7 +1471,7 @@
             textlen = len(text)
 
         # should we try to build a delta?
-        if prev != nullrev and self._storedeltachains:
+        if prev != nullrev and self.storedeltachains:
             tested = set()
             # This condition is true most of the time when processing
             # changegroup data into a generaldelta repo. The only time it