/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

More work on roundtrip push support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
class TestGitRepositoryFeatures(tests.TestCaseInTempDir):
51
51
    """Feature tests for GitRepository."""
52
52
 
53
 
    _test_needs_features = [tests.GitCommandFeature]
54
 
 
55
53
    def _do_commit(self):
56
54
        builder = tests.GitBranchBuilder()
57
55
        builder.set_file('a', 'text for a\n', False)
167
165
 
168
166
class TestGitRepository(tests.TestCaseWithTransport):
169
167
 
170
 
    _test_needs_features = [tests.GitCommandFeature]
171
 
 
172
168
    def _do_commit(self):
173
169
        builder = tests.GitBranchBuilder()
174
170
        builder.set_file('a', 'text for a\n', False)
196
192
 
197
193
    def test_all_revision_ids(self):
198
194
        commit_id = self._do_commit()
199
 
        self.assertEquals(set(["git-v1:%s" % commit_id]),
 
195
        self.assertEquals(
 
196
                set([default_mapping.revision_id_foreign_to_bzr(commit_id)]),
200
197
                self.git_repo.all_revision_ids())
201
198
 
202
199
    def test_get_ancestry_null(self):
278
275
class ForeignTestsRepositoryFactory(object):
279
276
 
280
277
    def make_repository(self, transport):
281
 
        return dir.LocalGitBzrDirFormat().initialize_on_transport(transport).open_repository()
 
278
        return dir.LocalGitControlDirFormat().initialize_on_transport(transport).open_repository()