/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/test_foreign.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-16 18:35:30 UTC
  • mfrom: (7143.15.15 more-cleanups)
  • mto: This revision was merged to the branch mainline in revision 7178.
  • Revision ID: jelmer@jelmer.uk-20181116183530-ue8yx60h5tinl2wy
Merge more-cleanups.

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
            for revid in todo:
195
195
                rev = self.source.repository.get_revision(revid)
196
196
                tree = self.source.repository.revision_tree(revid)
197
 
 
198
 
                def get_file_with_stat(path, file_id=None):
199
 
                    return (tree.get_file(path, file_id), None)
 
197
                def get_file_with_stat(path):
 
198
                    return (tree.get_file(path), None)
200
199
                tree.get_file_with_stat = get_file_with_stat
201
200
                new_revid = self.target.mapping.revision_id_foreign_to_bzr(
202
201
                    (b'%d' % rev.timestamp, str(rev.timezone).encode('ascii'),
397
396
    def test_parse_revision_id(self):
398
397
        reg = foreign.ForeignVcsRegistry()
399
398
        vcs = DummyForeignVcs()
400
 
        reg.register(b"dummy", vcs, "Dummy VCS")
 
399
        reg.register("dummy", vcs, "Dummy VCS")
401
400
        self.assertEqual((
402
401
            (b"some", b"foreign", b"revid"), DummyForeignVcsMapping(vcs)),
403
402
            reg.parse_revision_id(b"dummy-v1:some-foreign-revid"))