/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/history.py

  • Committer: Ubuntu One Auto Copilot
  • Author(s): Colin Watson
  • Date: 2022-02-23 19:58:34 UTC
  • mfrom: (519.1.6 drop-python3)
  • Revision ID: otto-copilot@canonical.com-20220223195834-yx8q035di1rteb7n
Drop support for Python < 3 and Breezy < 3.1.

Merged from https://code.launchpad.net/~jelmer/loggerhead/drop-python3/+merge/411875

Show diffs side-by-side

added added

removed removed

Lines of Context:
465
465
        # if a "revid" is actually a dotted revno, convert it to a revid
466
466
        if revid is None:
467
467
            return revid
468
 
        if not isinstance(revid, (str, util.text_type)):
 
468
        if not isinstance(revid, str):
469
469
            raise TypeError(revid)
470
470
        if revid == 'head:':
471
471
            return self.last_revid