307
307
bzr('cat-revision', new_rev_id)
309
def test_pull_overwrite_fails(self):
311
self.create_branches()
313
bzr('branch', 'child', 'other')
316
open('a', 'wb').write('new contents\n')
317
bzr('commit', '-m', 'changed a')
319
open('a', 'ab').write('and then some\n')
320
bzr('commit', '-m', 'another a')
322
open('a', 'ab').write('and some more\n')
323
bzr('commit', '-m', 'yet another a')
327
open('a', 'wb').write('also changed a\n')
328
bzr('commit', '-m', 'child modified a')
331
self.check_revno(2, '../base')
333
# It might be possible that we want pull --overwrite to
335
# If we want it, just change this test to make sure that
336
# both base and child are updated properly
337
bzr('pull', '--overwrite', '../other', retcode=3)
339
# It should fail without changing the local revision
341
self.check_revno(2, '../base')