/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/per_tree/test_tree.py

  • Committer: Jelmer Vernooij
  • Date: 2017-11-12 13:09:58 UTC
  • mto: This revision was merged to the branch mainline in revision 6819.
  • Revision ID: jelmer@jelmer.uk-20171112130958-6e3rstt48asiedzn
Swap arguments for annotate_iter.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
        tree_revision = getattr(tree, 'get_revision_id', lambda: 'current:')()
37
37
        tree.lock_read()
38
38
        self.addCleanup(tree.unlock)
39
 
        a_id = tree.path2id('a')
40
 
        for revision, line in tree.annotate_iter(a_id):
 
39
        for revision, line in tree.annotate_iter('a'):
41
40
            self.assertEqual('contents of a\n', line)
42
41
            self.assertEqual(tree_revision, revision)
43
42
        tree_revision = getattr(tree, 'get_revision_id', lambda: 'random:')()
44
 
        for revision, line in tree.annotate_iter(a_id, 'random:'):
 
43
        for revision, line in tree.annotate_iter('a', 'random:'):
45
44
            self.assertEqual('contents of a\n', line)
46
45
            self.assertEqual(tree_revision, revision)
47
46