~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2006-09-11 16:22:45 UTC
  • mfrom: (1907.4.14 bzr.merge-revno-n-path)
  • mto: This revision was merged to the branch mainline in revision 1999.
  • Revision ID: john@arbash-meinel.com-20060911162245-225331216fd26a9f
(moy) fixes for revno:N:branch/path

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        os.mkdir('a')
53
53
        os.chdir('a')
54
54
        self.example_branch()
 
55
        ancestor = Branch.open('.').revno()
55
56
        os.chdir('..')
56
57
        self.runbzr('branch a b')
57
58
        os.chdir('b')
79
80
        b_tip = b.last_revision()
80
81
        self.failUnless(a.branch.repository.has_revision(b_tip))
81
82
        self.assertEqual([a_tip, b_tip], a.get_parent_ids())
 
83
        self.runbzr('revert --no-backup')
 
84
        out, err = self.runbzr('merge -r revno:1:./hello', retcode=3)
 
85
        self.assertTrue("Not a branch" in err)
 
86
        self.runbzr('merge -r revno:%d:./..revno:%d:../b'
 
87
                    %(ancestor,b.revno()))
 
88
        self.assertEquals(a.pending_merges(), [b.last_revision()])
 
89
        self.check_file_contents('goodbye', 'quux')
 
90
        self.runbzr('revert --no-backup')
 
91
        self.runbzr('merge -r revno:%d:../b'%b.revno())
 
92
        self.assertEquals(a.pending_merges(),
 
93
                          [b.last_revision()])
82
94
        a_tip = a.commit('merged')
83
95
        self.runbzr('merge ../b -r last:1')
84
96
        self.assertEqual([a_tip], a.get_parent_ids())