/breezy-svn/trunk

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy-svn/trunk

« back to all changes in this revision

Viewing changes to mapping3/base.py

  • Committer: Jelmer Vernooij
  • Date: 2020-01-31 19:40:01 UTC
  • Revision ID: jelmer@jelmer.uk-20200131194001-ri4z8wyq0cvymo20
More python3/breezy compat fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
241
241
    def __repr__(self):
242
242
        return "%s(%r)" % (self.__class__.__name__, self.scheme)
243
243
 
244
 
    def generate_file_id(self, (uuid, branch, revnum), inv_path):
 
244
    def generate_file_id(self, foreign_revid, inv_path):
 
245
        (uuid, branch, revnum) = foreign_revid
245
246
        assert isinstance(uuid, str)
246
247
        assert isinstance(revnum, int)
247
248
        assert isinstance(branch, text_type)
322
323
                cls.revid_prefix, scheme, uuid,
323
324
                mapping.escape_svn_path(path.strip(u"/")), revnum)
324
325
 
325
 
    def revision_id_foreign_to_bzr(self, (uuid, path, revnum)):
 
326
    def revision_id_foreign_to_bzr(self, foreign_revid):
 
327
        (uuid, path, revnum) = foreign_revid
326
328
        assert isinstance(path, text_type)
327
329
        return self._generate_revision_id(uuid, revnum, path, self.scheme)
328
330