/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 tests/test_repository.py

Use bzr-foreign function names for converting between git and bzr revids.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
        commit_id = mapping[commit_handle]
63
63
 
64
64
        # Get the corresponding Revision object.
65
 
        revid = default_mapping.convert_revision_id_git_to_bzr(commit_id)
 
65
        revid = default_mapping.revision_id_foreign_to_bzr(commit_id)
66
66
        repo = Repository.open('.')
67
67
        rev = repo.get_revision(revid)
68
68
        self.assertIsInstance(rev, revision.Revision)
82
82
 
83
83
    def test_revision_tree(self):
84
84
        commit_id = self.simple_commit()
85
 
        revid = default_mapping.convert_revision_id_git_to_bzr(commit_id)
 
85
        revid = default_mapping.revision_id_foreign_to_bzr(commit_id)
86
86
        repo = Repository.open('.')
87
87
        tree = repo.revision_tree(revid)
88
88
        self.assertEquals(tree.get_revision_id(), revid)
95
95
        commit_id = self.simple_commit()
96
96
 
97
97
        # Get the corresponding Inventory object.
98
 
        revid = default_mapping.convert_revision_id_git_to_bzr(commit_id)
 
98
        revid = default_mapping.revision_id_foreign_to_bzr(commit_id)
99
99
        repo = Repository.open('.')
100
100
        inv = repo.get_inventory(revid)
101
101
        self.assertIsInstance(inv, inventory.Inventory)