~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-02-17 16:36:40 UTC
  • mfrom: (5035.3.2 no-get-revision-inventory)
  • Revision ID: pqm@pqm.ubuntu.com-20100217163640-cseitbcigg7vptg7
(Jelmer) Remove Repository.get_revision_inventory().

Show diffs side-by-side

added added

removed removed

Lines of Context:
2488
2488
            else:
2489
2489
                next_id = parents[0]
2490
2490
 
2491
 
    @needs_read_lock
2492
 
    def get_revision_inventory(self, revision_id):
2493
 
        """Return inventory of a past revision."""
2494
 
        # TODO: Unify this with get_inventory()
2495
 
        # bzr 0.0.6 and later imposes the constraint that the inventory_id
2496
 
        # must be the same as its revision, so this is trivial.
2497
 
        if revision_id is None:
2498
 
            # This does not make sense: if there is no revision,
2499
 
            # then it is the current tree inventory surely ?!
2500
 
            # and thus get_root_id() is something that looks at the last
2501
 
            # commit on the branch, and the get_root_id is an inventory check.
2502
 
            raise NotImplementedError
2503
 
            # return Inventory(self.get_root_id())
2504
 
        else:
2505
 
            return self.get_inventory(revision_id)
2506
 
 
2507
2491
    def is_shared(self):
2508
2492
        """Return True if this repository is flagged as a shared repository."""
2509
2493
        raise NotImplementedError(self.is_shared)
2543
2527
            return RevisionTree(self, Inventory(root_id=None),
2544
2528
                                _mod_revision.NULL_REVISION)
2545
2529
        else:
2546
 
            inv = self.get_revision_inventory(revision_id)
 
2530
            inv = self.get_inventory(revision_id)
2547
2531
            return RevisionTree(self, inv, revision_id)
2548
2532
 
2549
2533
    def revision_trees(self, revision_ids):