~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bundle/bundle_data.py

  • Committer: Martin Pool
  • Date: 2007-04-04 01:22:11 UTC
  • mfrom: (2393.1.1 bzr.docs)
  • mto: This revision was merged to the branch mainline in revision 2397.
  • Revision ID: mbp@sourcefrog.net-20070404012211-sq269me6bai9m6xk
merge trunk and doc fix from elliot

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    osutils,
26
26
    )
27
27
import bzrlib.errors
 
28
from bzrlib.bundle import apply_bundle
28
29
from bzrlib.errors import (TestamentMismatch, BzrError, 
29
30
                           MalformedHeader, MalformedPatches, NotABundle)
30
31
from bzrlib.inventory import (Inventory, InventoryEntry,
432
433
                        ' (unrecognized action): %r' % action_line)
433
434
            valid_actions[action](kind, extra, lines)
434
435
 
 
436
    def install_revisions(self, target_repo):
 
437
        """Install revisions and return the target revision"""
 
438
        apply_bundle.install_bundle(target_repo, self)
 
439
        return self.target
 
440
 
435
441
 
436
442
class BundleTree(Tree):
437
443
    def __init__(self, base_tree, revision_id):