269
299
self.build_tree_contents([
270
300
('branch/foo.c', 'int main() {}'),
271
301
('branch/bar.c', 'int main() {}')])
274
303
# can't commit files in different trees; sane error
275
304
self.run_bzr('commit -m newstuff branch/foo.c .', retcode=3)
276
306
self.run_bzr('commit -m newstuff branch/foo.c')
277
308
self.run_bzr('commit -m newstuff branch')
280
312
def test_out_of_date_tree_commit(self):
281
313
# check we get an error code and a clear message committing with an out