/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/branch.py

  • Committer: Martin Pool
  • Date: 2005-08-01 21:19:39 UTC
  • Revision ID: mbp@sourcefrog.net-20050801211939-909a1ff75b6e935d
- remove root_id from EmptyTree

Show diffs side-by-side

added added

removed removed

Lines of Context:
1029
1029
        # TODO: refactor this to use an existing revision object
1030
1030
        # so we don't need to read it in twice.
1031
1031
        if revision_id == None:
1032
 
            return EmptyTree(self.get_root_id())
 
1032
            return EmptyTree()
1033
1033
        else:
1034
1034
            inv = self.get_revision_inventory(revision_id)
1035
1035
            return RevisionTree(self.text_store, inv)
1048
1048
        """
1049
1049
        r = self.last_patch()
1050
1050
        if r == None:
1051
 
            return EmptyTree(self.get_root_id())
 
1051
            return EmptyTree()
1052
1052
        else:
1053
1053
            return RevisionTree(self.text_store, self.get_revision_inventory(r))
1054
1054