tests: call rawsize() directly
authorGregory Szorc <gregory.szorc@gmail.com>
Thu, 05 Apr 2018 17:44:18 -0700
changeset 37445 cc4b569975ed
parent 37444 c8666a9e9e11
child 37446 d46d4f14300a
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
tests/test-lfs.t
--- 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]