273
291
self.build_tree_contents([
274
292
('branch/foo.c', 'int main() {}'),
275
293
('branch/bar.c', 'int main() {}')])
278
295
# can't commit files in different trees; sane error
279
296
self.run_bzr('commit -m newstuff branch/foo.c .', retcode=3)
280
298
self.run_bzr('commit -m newstuff branch/foo.c')
281
300
self.run_bzr('commit -m newstuff branch')
284
304
def test_out_of_date_tree_commit(self):
285
305
# check we get an error code and a clear message committing with an out