changeset 37445:cc4b569975ed

tests: call rawsize() directly rawsize() is not reimplemented outside of revlog. I'm not sure why this code was insisting it call a specific implementation. Changing it to call rawsize() on the repo.file(f) result seems to work just fine. Differential Revision: https://phab.mercurial-scm.org/D3153
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 05 Apr 2018 17:44:18 -0700
parents c8666a9e9e11
children d46d4f14300a
files tests/test-lfs.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-lfs.t	Thu Apr 05 17:40:51 2018 -0700
+++ b/tests/test-lfs.t	Thu Apr 05 17:44:18 2018 -0700
@@ -630,7 +630,7 @@
   >         fl = repo.file(name)
   >         if len(fl) == 0:
   >             continue
-  >         sizes = [revlog.revlog.rawsize(fl, i) for i in fl]
+  >         sizes = [fl.rawsize(i) for i in fl]
   >         texts = [fl.revision(i, raw=True) for i in fl]
   >         flags = [int(fl.flags(i)) for i in fl]
   >         hashes = [hash(t) for t in texts]