~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Ian Clatworthy
  • Date: 2008-12-16 06:31:33 UTC
  • mto: (3915.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3916.
  • Revision ID: ian.clatworthy@canonical.com-20081216063133-q2s3ckxjnqgeiku1
WorkingTreeFormat5 supporting content filtering and views

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
    transform,
73
73
    ui,
74
74
    urlutils,
 
75
    workingtree_5,
75
76
    xml5,
76
77
    xml6,
77
78
    xml7,
284
285
    def supports_tree_reference(self):
285
286
        return False
286
287
 
 
288
    def supports_content_filtering(self):
 
289
        return self._format.supports_content_filtering()
 
290
 
 
291
    def supports_views(self):
 
292
        return self._format.supports_views()
 
293
 
287
294
    def _set_inventory(self, inv, dirty):
288
295
        """Set the internal cached inventory.
289
296
 
2714
2721
        """
2715
2722
        return True
2716
2723
 
 
2724
    def supports_content_filtering(self):
 
2725
        """True if this format supports content filtering."""
 
2726
        return False
 
2727
 
 
2728
    def supports_views(self):
 
2729
        """True if this format supports stored views."""
 
2730
        return False
 
2731
 
2717
2732
    @classmethod
2718
2733
    def register_format(klass, format):
2719
2734
        klass._formats[format.get_format_string()] = format
2942
2957
 
2943
2958
__default_format = WorkingTreeFormat4()
2944
2959
WorkingTreeFormat.register_format(__default_format)
 
2960
WorkingTreeFormat.register_format(workingtree_5.WorkingTreeFormat5())
2945
2961
WorkingTreeFormat.register_format(WorkingTreeFormat3())
2946
2962
WorkingTreeFormat.set_default_format(__default_format)
2947
2963
# formats which have no format string are not discoverable