/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

Special-case NULL_REVISION when looking for Git shas.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        GitRepo.init(self.test_dir)
70
70
 
71
71
        repo = Repository.open('.')
72
 
        self.assertIsInstance(repo._git, dulwich.repo.Repo)
 
72
        self.assertIsInstance(repo._git, dulwich.repo.BaseRepo)
73
73
 
74
74
    def test_has_revision(self):
75
75
        GitRepo.init(self.test_dir)
119
119
        mapping = builder.finish()
120
120
        return mapping[commit_handle]
121
121
 
 
122
    def test_pack(self):
 
123
        commit_id = self.simple_commit()
 
124
        repo = Repository.open('.')
 
125
        repo.pack()
 
126
 
122
127
    def test_revision_tree(self):
123
128
        commit_id = self.simple_commit()
124
129
        revid = default_mapping.revision_id_foreign_to_bzr(commit_id)