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