93
94
err.split('\n')[1:3])
94
95
self.assertContainsRe(err, 'Text conflict in file\n')
95
96
self.assertEqual('', out)
98
def test_smoke_update_checkout_bound_branch_local_commits(self):
99
# smoke test for doing an update of a checkout of a bound
100
# branch with local commits.
101
self.make_branch_and_tree('master')
102
# make a bound branch
103
self.run_bzr('get', '--bound', 'master', 'child')
105
self.run_bzr('checkout', 'child', 'checkout')
107
a_file = file('master/file', 'wt')
110
self.run_bzr('add', 'master')
111
self.run_bzr('commit', '-m', 'add file', 'master')
113
a_file = file('child/file_b', 'wt')
116
self.run_bzr('add', 'child')
117
self.run_bzr('commit', '--local', '-m', 'add file_b', 'child')
119
a_file = file('checkout/file_c', 'wt')
122
self.run_bzr('add', 'checkout')
124
# now, update checkout ->
125
# get all three files and a pending merge.
126
self.run_bzr('update', 'checkout')
127
wt = WorkingTree.open('checkout')
128
self.assertNotEqual([], wt.pending_merges())
129
self.failUnlessExists('checkout/file')
130
self.failUnlessExists('checkout/file_b')
131
self.failUnlessExists('checkout/file_c')
132
self.assertTrue(wt.has_filename('file_c'))