comparison hgext/convert/convcmd.py @ 35197:bfd072c52e03

py3: use bytes in place of basestring All strings in mercurial must be bytes so we can easily replace basestring with bytes. Differential Revision: https://phab.mercurial-scm.org/D1555
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 01 Dec 2017 16:53:55 +0530
parents 9700cb9df140
children eefabd9ed3e1
comparison
equal deleted inserted replaced
35196:5cc14407a739 35197:bfd072c52e03
448 448
449 def copy(self, rev): 449 def copy(self, rev):
450 commit = self.commitcache[rev] 450 commit = self.commitcache[rev]
451 full = self.opts.get('full') 451 full = self.opts.get('full')
452 changes = self.source.getchanges(rev, full) 452 changes = self.source.getchanges(rev, full)
453 if isinstance(changes, basestring): 453 if isinstance(changes, bytes):
454 if changes == SKIPREV: 454 if changes == SKIPREV:
455 dest = SKIPREV 455 dest = SKIPREV
456 else: 456 else:
457 dest = self.map[changes] 457 dest = self.map[changes]
458 self.map[rev] = dest 458 self.map[rev] = dest