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')])
386
393
output, error = self.run_bzr('grep text')
387
394
self.assertEqual(output, 'a:text for a\n')
388
395
self.assertEqual(error, '')
398
class StatusTests(ExternalBase):
400
def test_empty_dir(self):
401
tree = self.make_branch_and_tree('.', format='git')
402
self.build_tree(['a/', 'a/foo'])
403
self.build_tree_contents([('.gitignore', 'foo\n')])
404
tree.add(['.gitignore'])
405
tree.commit('add ignore')
406
output, error = self.run_bzr('st')
407
self.assertEqual(output, '')
408
self.assertEqual(error, '')
411
class StatsTests(ExternalBase):
413
def test_simple_stats(self):
414
self.requireFeature(PluginLoadedFeature('stats'))
415
tree = self.make_branch_and_tree('.', format='git')
416
self.build_tree_contents([('a', 'text for a\n')])
418
tree.commit('a commit', committer='Somebody <somebody@example.com>')
419
output, error = self.run_bzr('stats')
420
self.assertEqual(output, ' 1 Somebody <somebody@example.com>\n')