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

  • Committer: Jelmer Vernooij
  • Date: 2010-02-13 01:50:29 UTC
  • mto: This revision was merged to the branch mainline in revision 5043.
  • Revision ID: jelmer@samba.org-20100213015029-xq5owyrr94da7sqq
Remove Repository.get_revision_inventory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2511
2511
            else:
2512
2512
                next_id = parents[0]
2513
2513
 
2514
 
    @needs_read_lock
2515
 
    def get_revision_inventory(self, revision_id):
2516
 
        """Return inventory of a past revision."""
2517
 
        # TODO: Unify this with get_inventory()
2518
 
        # bzr 0.0.6 and later imposes the constraint that the inventory_id
2519
 
        # must be the same as its revision, so this is trivial.
2520
 
        if revision_id is None:
2521
 
            # This does not make sense: if there is no revision,
2522
 
            # then it is the current tree inventory surely ?!
2523
 
            # and thus get_root_id() is something that looks at the last
2524
 
            # commit on the branch, and the get_root_id is an inventory check.
2525
 
            raise NotImplementedError
2526
 
            # return Inventory(self.get_root_id())
2527
 
        else:
2528
 
            return self.get_inventory(revision_id)
2529
 
 
2530
2514
    def is_shared(self):
2531
2515
        """Return True if this repository is flagged as a shared repository."""
2532
2516
        raise NotImplementedError(self.is_shared)
2566
2550
            return RevisionTree(self, Inventory(root_id=None),
2567
2551
                                _mod_revision.NULL_REVISION)
2568
2552
        else:
2569
 
            inv = self.get_revision_inventory(revision_id)
 
2553
            inv = self.get_inventory(revision_id)
2570
2554
            return RevisionTree(self, inv, revision_id)
2571
2555
 
2572
2556
    def revision_trees(self, revision_ids):