# HG changeset patch # User Pierre-Yves David # Date 1476404708 -7200 # Node ID 5e4f16874a9f7cb7a4e40ca612c41faa1c5981ef # Parent 9d06b65c5df2ccc6714745e9607b0ce5403971de revlog: make 'storedeltachains' a "public" attribute The next changeset will make that attribute read by the changegroup packer. We make it "public" beforehand. diff -r 9d06b65c5df2 -r 5e4f16874a9f mercurial/changelog.py --- a/mercurial/changelog.py Mon Oct 17 22:51:22 2016 -0700 +++ b/mercurial/changelog.py Fri Oct 14 02:25:08 2016 +0200 @@ -267,7 +267,7 @@ # Delta chains for changelogs tend to be very small because entries # tend to be small and don't delta well with each. So disable delta # chains. - self._storedeltachains = False + self.storedeltachains = False self._realopener = opener self._delayed = False diff -r 9d06b65c5df2 -r 5e4f16874a9f mercurial/revlog.py --- 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