~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Jelmer Vernooij
  • Date: 2011-03-06 18:10:47 UTC
  • mto: This revision was merged to the branch mainline in revision 5701.
  • Revision ID: jelmer@samba.org-20110306181047-j3ychbs20m297tyf
Move is_control_filename() from Tree to MutableTree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
254
254
    def control_transport(self):
255
255
        return self._transport
256
256
 
 
257
    def is_control_filename(self, filename):
 
258
        """True if filename is the name of a control file in this tree.
 
259
 
 
260
        :param filename: A filename within the tree. This is a relative path
 
261
        from the root of this tree.
 
262
 
 
263
        This is true IF and ONLY IF the filename is part of the meta data
 
264
        that bzr controls in this tree. I.E. a random .bzr directory placed
 
265
        on disk will not be a control file for this tree.
 
266
        """
 
267
        return self.bzrdir.is_control_filename(filename)
 
268
 
257
269
    def _detect_case_handling(self):
258
270
        wt_trans = self.bzrdir.get_workingtree_transport(None)
259
271
        try: