~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Fix deprecated use of pending_merges

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
        self.assertTrue("Not a branch" in err)
86
86
        self.runbzr('merge -r revno:%d:./..revno:%d:../b'
87
87
                    %(ancestor,b.revno()))
88
 
        self.assertEquals(a.pending_merges(), [b.last_revision()])
 
88
        self.assertEquals(a.get_parent_ids(), 
 
89
                          [a.branch.last_revision(), b.last_revision()])
89
90
        self.check_file_contents('goodbye', 'quux')
90
91
        self.runbzr('revert --no-backup')
91
92
        self.runbzr('merge -r revno:%d:../b'%b.revno())
92
 
        self.assertEquals(a.pending_merges(),
93
 
                          [b.last_revision()])
 
93
        self.assertEquals(a.get_parent_ids(),
 
94
                          [a.branch.last_revision(), b.last_revision()])
94
95
        a_tip = a.commit('merged')
95
96
        self.runbzr('merge ../b -r last:1')
96
97
        self.assertEqual([a_tip], a.get_parent_ids())