258
259
assert a.revision_history()[-1] == b.revision_history()[-1]
261
261
def test_add_reports(self):
262
262
"""add command prints the names of added files."""
263
263
b = Branch.initialize('.')
264
264
self.build_tree(['top.txt', 'dir/', 'dir/sub.txt'])
269
266
ret = self.apply_redirected(None, out, None,
272
269
self.assertEquals(ret, 0)
274
270
# the ordering is not defined at the moment
275
271
results = sorted(out.getvalue().rstrip('\n').split('\n'))
276
272
self.assertEquals(['added dir',