~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-02-21 07:21:10 UTC
  • mfrom: (4029.1.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090221072110-uf8tjt38l6r3vo6o
Filtered views (Ian Clatworthy)

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
    transform,
73
73
    ui,
74
74
    urlutils,
 
75
    views,
75
76
    xml5,
76
77
    xml6,
77
78
    xml7,
185
186
    not listed in the Inventory and vice versa.
186
187
    """
187
188
 
 
189
    # override this to set the strategy for storing views
 
190
    def _make_views(self):
 
191
        return views.DisabledViews(self)
 
192
 
188
193
    def __init__(self, basedir='.',
189
194
                 branch=DEPRECATED_PARAMETER,
190
195
                 _inventory=None,
247
252
            self._set_inventory(_inventory, dirty=False)
248
253
        self._detect_case_handling()
249
254
        self._rules_searcher = None
 
255
        self.views = self._make_views()
250
256
 
251
257
    def _detect_case_handling(self):
252
258
        wt_trans = self.bzrdir.get_workingtree_transport(None)
288
294
        return self._format.supports_content_filtering()
289
295
 
290
296
    def supports_views(self):
291
 
        return self._format.supports_views()
 
297
        return self.views.supports_views()
292
298
 
293
299
    def _set_inventory(self, inv, dirty):
294
300
        """Set the internal cached inventory.