/breezy/stretch-backports

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

« back to all changes in this revision

Viewing changes to breezy/bzr/branch.py

Merge trunk, address review comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
234
234
 
235
235
    @needs_write_lock
236
236
    def set_last_revision_info(self, revno, revision_id):
237
 
        if not revision_id or not isinstance(revision_id, basestring):
 
237
        if not revision_id or not isinstance(revision_id, bytes):
238
238
            raise errors.InvalidRevisionId(revision_id=revision_id, branch=self)
239
239
        revision_id = _mod_revision.ensure_null(revision_id)
240
240
        old_revno, old_revid = self.last_revision_info()