Mercurial > public > mercurial-scm > hg
comparison mercurial/bundlerepo.py @ 30584:be5b2098a817
revlog: merge hash checking subfunctions
This patch factors the behavior of both methods into 'checkhash'.
author | Remi Chaintron <remi@fb.com> |
---|---|
date | Tue, 13 Dec 2016 14:21:36 +0000 |
parents | 20a42325fdef |
children | 2df983125d37 |
comparison
equal
deleted
inserted
replaced
30583:8f8211903b83 | 30584:be5b2098a817 |
---|---|
146 | 146 |
147 while chain: | 147 while chain: |
148 delta = self._chunk(chain.pop()) | 148 delta = self._chunk(chain.pop()) |
149 text = mdiff.patches(text, [delta]) | 149 text = mdiff.patches(text, [delta]) |
150 | 150 |
151 self._checkhash(text, node, rev) | 151 self.checkhash(text, node, rev=rev) |
152 self._cache = (node, rev, text) | 152 self._cache = (node, rev, text) |
153 return text | 153 return text |
154 | 154 |
155 def baserevision(self, nodeorrev): | 155 def baserevision(self, nodeorrev): |
156 # Revlog subclasses may override 'revision' method to modify format of | 156 # Revlog subclasses may override 'revision' method to modify format of |