Mercurial > public > mercurial-scm > hg
comparison mercurial/repository.py @ 39875:d909c44d29e1
filelog: stop proxying rawsize() (API)
This method is no longer used by external consumers. The API is
quite low-level and is effectively len(revision(raw=True)). I don't
see a compelling reason to keep it around.
Let's drop the API and make the file storage interface simpler.
Differential Revision: https://phab.mercurial-scm.org/D4750
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 24 Sep 2018 12:49:17 -0700 |
parents | 2ac4f3e97813 |
children | a269fa55467e |
comparison
equal
deleted
inserted
replaced
39874:9596cf2a550d | 39875:d909c44d29e1 |
---|---|
540 """Storage interface for data storage of a specific file. | 540 """Storage interface for data storage of a specific file. |
541 | 541 |
542 This complements ``ifileindex`` and provides an interface for accessing | 542 This complements ``ifileindex`` and provides an interface for accessing |
543 data for a tracked file. | 543 data for a tracked file. |
544 """ | 544 """ |
545 def rawsize(rev): | |
546 """The size of the fulltext data for a revision as stored.""" | |
547 | |
548 def size(rev): | 545 def size(rev): |
549 """Obtain the fulltext size of file data. | 546 """Obtain the fulltext size of file data. |
550 | 547 |
551 Any metadata is excluded from size measurements. Use ``rawsize()`` if | 548 Any metadata is excluded from size measurements. |
552 metadata size is important. | |
553 """ | 549 """ |
554 | 550 |
555 def checkhash(fulltext, node, p1=None, p2=None, rev=None): | 551 def checkhash(fulltext, node, p1=None, p2=None, rev=None): |
556 """Validate the stored hash of a given fulltext and node. | 552 """Validate the stored hash of a given fulltext and node. |
557 | 553 |