/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/memorytree.py

  • Committer: Ian Clatworthy
  • Date: 2007-06-29 04:35:01 UTC
  • mto: (2647.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 2648.
  • Revision ID: ian.clatworthy@internode.on.net-20070629043501-zgm70dyx6ut3yerk
refactor commit to support alternative population meothds

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
        """See Tree.get_file."""
77
77
        return self._file_transport.get(self.id2path(file_id))
78
78
 
79
 
    def get_file_sha1(self, file_id, path=None):
 
79
    def get_file_sha1(self, file_id, path=None, stat_value=None):
80
80
        """See Tree.get_file_sha1()."""
81
81
        if path is None:
82
82
            path = self.id2path(file_id)
83
83
        stream = self._file_transport.get(path)
84
84
        return sha_file(stream)
85
85
 
 
86
    def _comparison_data(self, entry, path):
 
87
        """See Tree._comparison_data."""
 
88
        if entry is None:
 
89
            return None, False, None
 
90
        return entry.kind, entry.executable, None
 
91
 
 
92
    def _file_size(self, entry, stat_value):
 
93
        """See Tree._file_size."""
 
94
        if entry is None:
 
95
            return 0
 
96
        return entry.text_size
 
97
 
86
98
    @needs_read_lock
87
99
    def get_parent_ids(self):
88
100
        """See Tree.get_parent_ids.