# HG changeset patch
# User Gregory Szorc <gregory.szorc@gmail.com>
# Date 1522975458 25200
#      Thu Apr 05 17:44:18 2018 -0700
# Node ID cc4b569975ed5342387cd2ce37aaad42a757c603
# Parent  c8666a9e9e11480b94783e51363bde3dbcf684fc
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

diff --git a/tests/test-lfs.t b/tests/test-lfs.t
--- a/tests/test-lfs.t
+++ b/tests/test-lfs.t
@@ -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]