~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revfile.py

  • Committer: mbp at sourcefrog
  • Date: 2005-04-09 05:51:22 UTC
  • Revision ID: mbp@sourcefrog.net-20050409055122-34e31277460f92bc19755d45
doc

Show diffs side-by-side

added added

removed removed

Lines of Context:
389
389
                
390
390
            f.write("%8x %8d %8d\n" % (rec[2], rec[3], rec[4]))
391
391
 
 
392
 
392
393
    def total_text_size(self):
 
394
        """Return the sum of sizes of all file texts.
 
395
 
 
396
        This is how much space they would occupy if they were stored without
 
397
        delta and gzip compression.
 
398
 
 
399
        As a side effect this completely validates the Revfile, checking that all
 
400
        texts can be reproduced with the correct SHA-1."""
393
401
        t = 0L
394
402
        for idx in range(len(self)):
395
403
            t += len(self.get(idx))