~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

Lots of updates for 'bzr check'
Added get_sha1() to Weave, 
Updated RevisionTree so that it takes a Branch 
(thus it can use get_transaction()),
changed 'bzr check' so that it uses Weave.check(),
rather than having each file extract its own text

Show diffs side-by-side

added added

removed removed

Lines of Context:
1030
1030
            return EmptyTree()
1031
1031
        else:
1032
1032
            inv = self.get_revision_inventory(revision_id)
1033
 
            return RevisionTree(self.weave_store, inv, revision_id)
 
1033
            return RevisionTree(self, inv, revision_id)
1034
1034
 
1035
1035
    def basis_tree(self):
1036
1036
        """See Branch.basis_tree."""
1038
1038
            revision_id = self.revision_history()[-1]
1039
1039
            xml = self.working_tree().read_basis_inventory(revision_id)
1040
1040
            inv = bzrlib.xml5.serializer_v5.read_inventory_from_string(xml)
1041
 
            return RevisionTree(self.weave_store, inv, revision_id)
 
1041
            return RevisionTree(self, inv, revision_id)
1042
1042
        except (IndexError, NoSuchFile, NoWorkingTree), e:
1043
1043
            return self.revision_tree(self.last_revision())
1044
1044