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

  • Committer: Aaron Bentley
  • Date: 2006-09-19 16:26:17 UTC
  • mfrom: (2022 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2162.
  • Revision ID: abentley@panoramicfeedback.com-20060919162617-e6099afb05b6a9ef
Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
    def id2path(self, file_id):
126
126
        return self.inventory.id2path(file_id)
127
127
 
 
128
    def is_control_filename(self, filename):
 
129
        """True if filename is the name of a control file in this tree.
 
130
        
 
131
        :param filename: A filename within the tree. This is a relative path
 
132
        from the root of this tree.
 
133
 
 
134
        This is true IF and ONLY IF the filename is part of the meta data
 
135
        that bzr controls in this tree. I.E. a random .bzr directory placed
 
136
        on disk will not be a control file for this tree.
 
137
        """
 
138
        return self.bzrdir.is_control_filename(filename)
 
139
 
128
140
    def iter_entries_by_dir(self):
129
141
        """Walk the tree in 'by_dir' order.
130
142
 
141
153
    def _get_inventory(self):
142
154
        return self._inventory
143
155
    
 
156
    def get_file(self, file_id):
 
157
        """Return a file object for the file file_id in the tree."""
 
158
        raise NotImplementedError(self.get_file)
 
159
    
144
160
    def get_file_by_path(self, path):
145
161
        return self.get_file(self._inventory.path2id(path))
146
162
 
166
182
                     "file is actually %s" % fp['sha1'],
167
183
                     "store is probably damaged/corrupt"])
168
184
 
 
185
    def path2id(self, path):
 
186
        """Return the id for path in this tree."""
 
187
        return self._inventory.path2id(path)
169
188
 
170
189
    def print_file(self, file_id):
171
190
        """Print file with id `file_id` to stdout."""