~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_merge_directive.py

  • Committer: Aaron Bentley
  • Date: 2007-12-14 06:55:43 UTC
  • mfrom: (3109 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3110.
  • Revision ID: abentley@panoramicfeedback.com-20071214065543-l97o7c7vyt22u3iq
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
553
553
        revision = md.install_revisions(tree_b.branch.repository)
554
554
        self.assertEqual('rev2a', revision)
555
555
 
 
556
    def test_use_submit_for_missing_dependency(self):
 
557
        tree_a, tree_b, branch_c = self.make_trees()
 
558
        branch_c.pull(tree_a.branch)
 
559
        self.build_tree_contents([('tree_a/file', 'content_q\ncontent_r\n')])
 
560
        tree_a.commit('rev3a', rev_id='rev3a')
 
561
        md = self.from_objects(tree_a.branch.repository, 'rev3a', 500, 36,
 
562
            branch_c.base, base_revision_id='rev2a')
 
563
        revision = md.install_revisions(tree_b.branch.repository)
 
564
 
556
565
 
557
566
class TestMergeDirective1Branch(tests.TestCaseWithTransport,
558
567
    TestMergeDirectiveBranch):
564
573
 
565
574
    def from_objects(self, repository, revision_id, time, timezone,
566
575
        target_branch, patch_type='bundle', local_target_branch=None,
567
 
        public_branch=None, message=None):
 
576
        public_branch=None, message=None, base_revision_id=None):
 
577
        if base_revision_id is not None:
 
578
            raise tests.TestNotApplicable('This format does not support'
 
579
                                          ' explicit bases.')
568
580
        repository.lock_write()
569
581
        try:
570
582
            return merge_directive.MergeDirective.from_objects( repository,