305
305
print >> file('sub/a.txt', 'wb'), "hello"
306
print >> file('b.txt', 'wb'), "hello"
307
print >> file('sub/c.txt', 'wb'), "hello"
306
308
self.runbzr('init')
307
309
self.runbzr('add')
308
310
self.runbzr(('commit', '-m', 'added a'))
309
311
self.runbzr('branch . ../b')
310
312
print >> file('sub/a.txt', 'ab'), "there"
313
print >> file('b.txt', 'ab'), "there"
314
print >> file('sub/c.txt', 'ab'), "there"
311
315
self.runbzr(('commit', '-m', 'Added there'))
312
316
os.unlink('sub/a.txt')
317
os.unlink('sub/c.txt')
314
320
self.runbzr(('commit', '-m', 'Removed a.txt'))
316
322
print >> file('sub/a.txt', 'ab'), "something"
323
print >> file('b.txt', 'ab'), "something"
324
print >> file('sub/c.txt', 'ab'), "something"
317
325
self.runbzr(('commit', '-m', 'Modified a.txt'))
318
326
self.runbzr('merge ../a/')
319
327
assert os.path.exists('sub/a.txt.THIS')
320
328
assert os.path.exists('sub/a.txt.BASE')
330
self.runbzr('merge ../b/')
331
assert os.path.exists('sub/a.txt.OTHER')
332
assert os.path.exists('sub/a.txt.BASE')
322
334
def test_pull(self):
323
335
"""Pull changes from one branch to another."""