/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/workingtree_4.py

Merge bzr.dev 4032. Resolve the new streaming fetch.

XXX: We cheat a bit for CHK fetching. CHK serializers happen to still
have legacy 'read_inventory_from_string' and 'write_inventory_to_string'
functions that convert the paged representation to a single-string XML
representation.

So when converting between formats, we just go down to the
whole-inventory XML form.

At least it works for now. Even if it is grossly innefficient.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    trace,
59
59
    transform,
60
60
    urlutils,
 
61
    views,
61
62
    xml5,
62
63
    xml6,
63
64
    )
129
130
        self._setup_directory_is_tree_reference()
130
131
        self._detect_case_handling()
131
132
        self._rules_searcher = None
 
133
        self.views = self._make_views()
132
134
        #--- allow tests to select the dirstate iter_changes implementation
133
135
        self._iter_changes = dirstate._process_entry
134
136
 
1305
1307
    This is new in bzr 1.11.
1306
1308
    """
1307
1309
 
 
1310
    def _make_views(self):
 
1311
        return views.PathBasedViews(self)
 
1312
 
1308
1313
 
1309
1314
class DirStateWorkingTreeFormat(WorkingTreeFormat3):
1310
1315
    def initialize(self, a_bzrdir, revision_id=None, from_branch=None,