Mercurial > public > mercurial-scm > hg-stable
diff mercurial/bundlerepo.py @ 30589: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 |
line wrap: on
line diff
--- a/mercurial/bundlerepo.py Fri Dec 09 03:22:26 2016 -0800 +++ b/mercurial/bundlerepo.py Tue Dec 13 14:21:36 2016 +0000 @@ -148,7 +148,7 @@ delta = self._chunk(chain.pop()) text = mdiff.patches(text, [delta]) - self._checkhash(text, node, rev) + self.checkhash(text, node, rev=rev) self._cache = (node, rev, text) return text