Mercurial > public > mercurial-scm > hg
diff mercurial/repository.py @ 39998:44c98cbc665f
filelog: remove checkhash() (API)
It is unused.
While a caller may want to ask the store to validate the hash of some
provided text, since there are no in-core consumers of this method,
let's drop it for now.
Differential Revision: https://phab.mercurial-scm.org/D4793
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 28 Sep 2018 09:33:05 -0700 |
parents | 2f80eaf38ed4 |
children | 0e8836be9541 |
line wrap: on
line diff
--- a/mercurial/repository.py Fri Sep 28 09:28:38 2018 -0700 +++ b/mercurial/repository.py Fri Sep 28 09:33:05 2018 -0700 @@ -545,12 +545,6 @@ Any metadata is excluded from size measurements. """ - def checkhash(fulltext, node, p1=None, p2=None, rev=None): - """Validate the stored hash of a given fulltext and node. - - Raises ``error.StorageError`` is hash validation fails. - """ - def revision(node, raw=False): """"Obtain fulltext data for a node.