D4718: manifest: add rawsize() proxy (API)
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Wed Sep 26 13:25:34 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9534fe1e5d28: manifest: add rawsize() proxy (API) (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D4718?vs=11326&id=11390
REVISION DETAIL
https://phab.mercurial-scm.org/D4718
AFFECTED FILES
mercurial/manifest.py
mercurial/repository.py
CHANGE DETAILS
diff --git a/mercurial/repository.py b/mercurial/repository.py
--- a/mercurial/repository.py
+++ b/mercurial/repository.py
@@ -1136,6 +1136,14 @@
See the documentation in ``ifilemutation`` for more.
"""
+ def rawsize(rev):
+ """Obtain the size of tracked data.
+
+ Is equivalent to ``len(m.revision(node, raw=True))``.
+
+ TODO this method is only used by upgrade code and may be removed.
+ """
+
def getstrippoint(minlink):
"""Find minimum revision that must be stripped to strip a linkrev.
diff --git a/mercurial/manifest.py b/mercurial/manifest.py
--- a/mercurial/manifest.py
+++ b/mercurial/manifest.py
@@ -1569,6 +1569,9 @@
return self._revlog.addgroup(deltas, linkmapper, transaction,
addrevisioncb=addrevisioncb)
+ def rawsize(self, rev):
+ return self._revlog.rawsize(rev)
+
def getstrippoint(self, minlink):
return self._revlog.getstrippoint(minlink)
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list