~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Jelmer Vernooij
  • Date: 2011-02-19 15:23:08 UTC
  • mto: (5582.12.2 weave-plugin)
  • mto: This revision was merged to the branch mainline in revision 5718.
  • Revision ID: jelmer@samba.org-20110219152308-5shhc4rj0ez4oa12
move xml4 to weave plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
        """
158
158
        return self.inventory.id2path(file_id)
159
159
 
 
160
    def is_control_filename(self, filename):
 
161
        """True if filename is the name of a control file in this tree.
 
162
 
 
163
        :param filename: A filename within the tree. This is a relative path
 
164
        from the root of this tree.
 
165
 
 
166
        This is true IF and ONLY IF the filename is part of the meta data
 
167
        that bzr controls in this tree. I.E. a random .bzr directory placed
 
168
        on disk will not be a control file for this tree.
 
169
        """
 
170
        return self.bzrdir.is_control_filename(filename)
 
171
 
160
172
    @needs_read_lock
161
173
    def iter_entries_by_dir(self, specific_file_ids=None, yield_parents=False):
162
174
        """Walk the tree in 'by_dir' order.
766
778
    return 'wtf?'
767
779
 
768
780
 
 
781
@deprecated_function(deprecated_in((1, 9, 0)))
 
782
def find_renames(old_inv, new_inv):
 
783
    for file_id in old_inv:
 
784
        if file_id not in new_inv:
 
785
            continue
 
786
        old_name = old_inv.id2path(file_id)
 
787
        new_name = new_inv.id2path(file_id)
 
788
        if old_name != new_name:
 
789
            yield (old_name, new_name)
 
790
 
 
791
 
769
792
def find_ids_across_trees(filenames, trees, require_versioned=True):
770
793
    """Find the ids corresponding to specified filenames.
771
794