/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/revisiontree.py

  • Committer: Aaron Bentley
  • Date: 2006-09-20 14:03:05 UTC
  • mto: This revision was merged to the branch mainline in revision 2162.
  • Revision ID: abentley@panoramicfeedback.com-20060920140305-7726fe3eb92690b1
Get tree._iter_changed down to ~ 1 stat per file

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
    def get_file_size(self, file_id):
78
78
        return self._inventory[file_id].text_size
79
79
 
80
 
    def get_file_sha1(self, file_id, path=None):
 
80
    def get_file_sha1(self, file_id, path=None, stat_value=None):
81
81
        ie = self._inventory[file_id]
82
82
        if ie.kind == "file":
83
83
            return ie.text_sha1
112
112
    def kind(self, file_id):
113
113
        return self._inventory[file_id].kind
114
114
 
 
115
    def _comparison_data(self, entry, path):
 
116
        if entry is None:
 
117
            return None, False
 
118
        return entry.kind, entry.executable, None
 
119
 
 
120
    def _file_size(self, entry, stat_value):
 
121
        assert entry.text_size is not None
 
122
        return entry.text_size
 
123
 
115
124
    def lock_read(self):
116
125
        self._repository.lock_read()
117
126