~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bundle.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-01-03 19:12:30 UTC
  • mfrom: (3146.4.12 win32fixes)
  • Revision ID: pqm@pqm.ubuntu.com-20080103191230-baidarqql3lct685
Misc cleanups for win32, especially tests (abentley)

Show diffs side-by-side

added added

removed removed

Lines of Context:
498
498
        sure everything matches the builtin branch.
499
499
        """
500
500
        to_tree = self.get_checkout(base_rev_id, checkout_dir=checkout_dir)
 
501
        to_tree.lock_write()
 
502
        try:
 
503
            self._valid_apply_bundle(base_rev_id, info, to_tree)
 
504
        finally:
 
505
            to_tree.unlock()
 
506
 
 
507
    def _valid_apply_bundle(self, base_rev_id, info, to_tree):
501
508
        original_parents = to_tree.get_parent_ids()
502
509
        repository = to_tree.branch.repository
503
510
        original_parents = to_tree.get_parent_ids()