~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_merge.py

  • Committer: Aaron Bentley
  • Date: 2006-04-10 13:39:55 UTC
  • mfrom: (1649 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1650.
  • Revision ID: abentley@panoramicfeedback.com-20060410133955-c73b8e2aa3ddc84c
Merge dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
                          [None, None])
45
45
        return wt2
46
46
 
 
47
    def test_merge_one(self):
 
48
        wt1 = self.make_branch_and_tree('branch1')
 
49
        wt1.commit('empty commit')
 
50
        wt2 = self.make_branch_and_tree('branch2')
 
51
        wt2.pull(wt1.branch)
 
52
        file('branch1/foo', 'wb').write('foo')
 
53
        file('branch1/bar', 'wb').write('bar')
 
54
        wt1.add('foo')
 
55
        wt1.add('bar')
 
56
        wt1.commit('add foobar')
 
57
        os.chdir('branch2')
 
58
        self.run_bzr('merge', '../branch1/baz', retcode=3)
 
59
        self.run_bzr('merge', '../branch1/foo')
 
60
        self.failUnlessExists('foo')
 
61
        self.failIfExists('bar')
 
62
        wt2 = WorkingTree.open_containing('branch2')[0]
 
63
        self.assertEqual(wt2.pending_merges(), [])
 
64
 
47
65
    def test_pending_with_null(self):
48
66
        """When base is forced to revno 0, pending_merges is set"""
49
67
        wt2 = self.test_unrelated()