~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: mbp at sourcefrog
  • Date: 2005-03-29 02:31:34 UTC
  • Revision ID: mbp@sourcefrog.net-20050329023134-2d1eb96c55831937
check size and sha1 of files retrieved from the tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
        f.seek(0)
78
78
        
79
79
        if ie.text_size is not None:
80
 
            if fs != fp['size']:
 
80
            if ie.text_size != fp['size']:
81
81
                bailout("mismatched size for file %r in %r" % (ie.file_id, self._store),
82
82
                        ["inventory expects %d bytes" % ie.text_size,
83
83
                         "file is actually %d bytes" % fp['size'],
314
314
        ie = self._inventory[file_id]
315
315
        f = self._store[ie.text_id]
316
316
        mutter("  get fileid{%s} from %r" % (file_id, self))
317
 
        ## self._check_retrieved(ie, f)
 
317
        self._check_retrieved(ie, f)
318
318
        return f
319
319
 
320
320
    def get_file_size(self, file_id):