~lifeless/bzr/index.range_map

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_merge.py

  • Committer: Robert Collins
  • Date: 2008-06-19 01:17:19 UTC
  • mfrom: (3218.1.277 +trunk)
  • Revision ID: robertc@robertcollins.net-20080619011719-1c4g4uxzzhdls2wf
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
        out, err = self.run_bzr('merge')
176
176
        
177
177
        base = urlutils.local_path_from_url(branch_a.base)
178
 
        self.assertEquals(out,
 
178
        self.assertStartsWith(err,
179
179
                          'Merging from remembered location %s\n' % (base,))
180
 
        self.assertEquals(err, '+N  b\nAll changes applied successfully.\n')
 
180
        self.assertEndsWith(err, '+N  b\nAll changes applied successfully.\n')
181
181
        self.assertEquals(abspath(branch_b.get_submit_branch()),
182
182
                          abspath(parent))
183
183
        # re-open tree as external run_bzr modified it
418
418
        tree_b = tree_a.bzrdir.sprout('b').open_workingtree()
419
419
        tree_c = tree_a.bzrdir.sprout('c').open_workingtree()
420
420
        out, err = self.run_bzr(['merge', '-d', 'c'])
421
 
        self.assertContainsRe(out, 'Merging from remembered location .*a\/$')
 
421
        self.assertContainsRe(err, 'Merging from remembered location .*a\/')
422
422
        tree_c.branch.set_submit_branch(tree_b.bzrdir.root_transport.base)
423
423
        out, err = self.run_bzr(['merge', '-d', 'c'])
424
 
        self.assertContainsRe(out, 'Merging from remembered location .*b\/$')
 
424
        self.assertContainsRe(err, 'Merging from remembered location .*b\/')
425
425
 
426
426
    def test_remember_sets_submit(self):
427
427
        tree_a = self.make_branch_and_tree('a')
491
491
        this_tree.lock_read()
492
492
        self.addCleanup(this_tree.unlock)
493
493
        self.assertEqual([],
494
 
                         list(this_tree._iter_changes(this_tree.basis_tree())))
 
494
                         list(this_tree.iter_changes(this_tree.basis_tree())))