63
64
self.simple_commit()
64
65
output, error = self.run_bzr(['info'])
65
66
self.assertEqual(error, '')
66
self.assertTrue("Standalone tree (format: git)" in output)
69
'Standalone tree (format: git)\n'
71
' light checkout root: .\n'
72
' checkout of co-located branch: master\n')
68
74
def test_ignore(self):
69
75
self.simple_commit()
380
386
class GrepTests(ExternalBase):
382
388
def test_simple_grep(self):
389
self.requireFeature(PluginLoadedFeature('grep'))
383
390
tree = self.make_branch_and_tree('.', format='git')
384
391
self.build_tree_contents([('a', 'text for a\n')])
401
408
'Reconciling repository file://.*\n'
402
409
'Reconciliation complete.\n')
403
410
self.assertEqual(error, '')
413
class StatusTests(ExternalBase):
415
def test_empty_dir(self):
416
tree = self.make_branch_and_tree('.', format='git')
417
self.build_tree(['a/', 'a/foo'])
418
self.build_tree_contents([('.gitignore', 'foo\n')])
419
tree.add(['.gitignore'])
420
tree.commit('add ignore')
421
output, error = self.run_bzr('st')
422
self.assertEqual(output, '')
423
self.assertEqual(error, '')
426
class StatsTests(ExternalBase):
428
def test_simple_stats(self):
429
self.requireFeature(PluginLoadedFeature('stats'))
430
tree = self.make_branch_and_tree('.', format='git')
431
self.build_tree_contents([('a', 'text for a\n')])
433
tree.commit('a commit', committer='Somebody <somebody@example.com>')
434
output, error = self.run_bzr('stats')
435
self.assertEqual(output, ' 1 Somebody <somebody@example.com>\n')