comparison tests/test-lfs.t @ 39875:d909c44d29e1

filelog: stop proxying rawsize() (API) This method is no longer used by external consumers. The API is quite low-level and is effectively len(revision(raw=True)). I don't see a compelling reason to keep it around. Let's drop the API and make the file storage interface simpler. Differential Revision: https://phab.mercurial-scm.org/D4750
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 24 Sep 2018 12:49:17 -0700
parents 62a532045e71
children e1f97179a3f5
comparison
equal deleted inserted replaced
39874:9596cf2a550d 39875:d909c44d29e1
688 > # these 2 files are interesting 688 > # these 2 files are interesting
689 > for name in ['l', 's']: 689 > for name in ['l', 's']:
690 > fl = repo.file(name) 690 > fl = repo.file(name)
691 > if len(fl) == 0: 691 > if len(fl) == 0:
692 > continue 692 > continue
693 > sizes = [fl.rawsize(i) for i in fl] 693 > sizes = [fl._revlog.rawsize(i) for i in fl]
694 > texts = [fl.revision(i, raw=True) for i in fl] 694 > texts = [fl.revision(i, raw=True) for i in fl]
695 > flags = [int(fl._revlog.flags(i)) for i in fl] 695 > flags = [int(fl._revlog.flags(i)) for i in fl]
696 > hashes = [hash(t) for t in texts] 696 > hashes = [hash(t) for t in texts]
697 > print(' %s: rawsizes=%r flags=%r hashes=%r' 697 > print(' %s: rawsizes=%r flags=%r hashes=%r'
698 > % (name, sizes, flags, hashes)) 698 > % (name, sizes, flags, hashes))