~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Mark Hammond
  • Date: 2008-12-28 05:21:23 UTC
  • mfrom: (3920 +trunk)
  • mto: (3932.1.1 prepare-1.11)
  • mto: This revision was merged to the branch mainline in revision 3937.
  • Revision ID: mhammond@skippinet.com.au-20081228052123-f78xs5sbdkotshwf
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
import bzrlib.branch
80
80
from bzrlib.transport import get_transport
81
81
import bzrlib.ui
82
 
from bzrlib.workingtree_4 import WorkingTreeFormat4
 
82
from bzrlib.workingtree_4 import WorkingTreeFormat4, WorkingTreeFormat5
83
83
""")
84
84
 
85
85
from bzrlib import symbol_versioning
284
284
    def supports_tree_reference(self):
285
285
        return False
286
286
 
 
287
    def supports_content_filtering(self):
 
288
        return self._format.supports_content_filtering()
 
289
 
 
290
    def supports_views(self):
 
291
        return self._format.supports_views()
 
292
 
287
293
    def _set_inventory(self, inv, dirty):
288
294
        """Set the internal cached inventory.
289
295
 
2714
2720
        """
2715
2721
        return True
2716
2722
 
 
2723
    def supports_content_filtering(self):
 
2724
        """True if this format supports content filtering."""
 
2725
        return False
 
2726
 
 
2727
    def supports_views(self):
 
2728
        """True if this format supports stored views."""
 
2729
        return False
 
2730
 
2717
2731
    @classmethod
2718
2732
    def register_format(klass, format):
2719
2733
        klass._formats[format.get_format_string()] = format
2942
2956
 
2943
2957
__default_format = WorkingTreeFormat4()
2944
2958
WorkingTreeFormat.register_format(__default_format)
 
2959
WorkingTreeFormat.register_format(WorkingTreeFormat5())
2945
2960
WorkingTreeFormat.register_format(WorkingTreeFormat3())
2946
2961
WorkingTreeFormat.set_default_format(__default_format)
2947
2962
# formats which have no format string are not discoverable