Mercurial > hg
comparison tests/test-lfs.t @ 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 | f4e84dfc06fd |
children | 538e850ae737 |
comparison
equal
deleted
inserted
replaced
37444:c8666a9e9e11 | 37445:cc4b569975ed |
---|---|
628 > # these 2 files are interesting | 628 > # these 2 files are interesting |
629 > for name in ['l', 's']: | 629 > for name in ['l', 's']: |
630 > fl = repo.file(name) | 630 > fl = repo.file(name) |
631 > if len(fl) == 0: | 631 > if len(fl) == 0: |
632 > continue | 632 > continue |
633 > sizes = [revlog.revlog.rawsize(fl, i) for i in fl] | 633 > sizes = [fl.rawsize(i) for i in fl] |
634 > texts = [fl.revision(i, raw=True) for i in fl] | 634 > texts = [fl.revision(i, raw=True) for i in fl] |
635 > flags = [int(fl.flags(i)) for i in fl] | 635 > flags = [int(fl.flags(i)) for i in fl] |
636 > hashes = [hash(t) for t in texts] | 636 > hashes = [hash(t) for t in texts] |
637 > print(' %s: rawsizes=%r flags=%r hashes=%r' | 637 > print(' %s: rawsizes=%r flags=%r hashes=%r' |
638 > % (name, sizes, flags, hashes)) | 638 > % (name, sizes, flags, hashes)) |