##// END OF EJS Templates
py3: convert known-int values to bytes using %d...
Augie Fackler -
r36441:2831d918 default
parent child Browse files
Show More
@@ -1151,8 +1151,8 b' def _pushsyncphase(pushop):'
1151 for newremotehead in outdated:
1151 for newremotehead in outdated:
1152 r = pushop.remote.pushkey('phases',
1152 r = pushop.remote.pushkey('phases',
1153 newremotehead.hex(),
1153 newremotehead.hex(),
1154 str(phases.draft),
1154 ('%d' % phases.draft),
1155 str(phases.public))
1155 ('%d' % phases.public))
1156 if not r:
1156 if not r:
1157 pushop.ui.warn(_('updating %s to public failed!\n')
1157 pushop.ui.warn(_('updating %s to public failed!\n')
1158 % newremotehead)
1158 % newremotehead)
@@ -656,7 +656,7 b' class obsstore(object):'
656 self.caches.clear()
656 self.caches.clear()
657 # records the number of new markers for the transaction hooks
657 # records the number of new markers for the transaction hooks
658 previous = int(transaction.hookargs.get('new_obsmarkers', '0'))
658 previous = int(transaction.hookargs.get('new_obsmarkers', '0'))
659 transaction.hookargs['new_obsmarkers'] = str(previous + len(new))
659 transaction.hookargs['new_obsmarkers'] = '%d' % (previous + len(new))
660 return len(new)
660 return len(new)
661
661
662 def mergemarkers(self, transaction, data):
662 def mergemarkers(self, transaction, data):
@@ -566,7 +566,7 b' class filestore(object):'
566 root = tempfile.mkdtemp(prefix='hg-patch-')
566 root = tempfile.mkdtemp(prefix='hg-patch-')
567 self.opener = vfsmod.vfs(root)
567 self.opener = vfsmod.vfs(root)
568 # Avoid filename issues with these simple names
568 # Avoid filename issues with these simple names
569 fn = str(self.created)
569 fn = '%d' % self.created
570 self.opener.write(fn, data)
570 self.opener.write(fn, data)
571 self.created += 1
571 self.created += 1
572 self.files[fname] = (fn, mode, copied)
572 self.files[fname] = (fn, mode, copied)
@@ -121,7 +121,7 b' class progbar(object):'
121 if total:
121 if total:
122 add = b'%*d/%d' % (len(str(total)), pos, total)
122 add = b'%*d/%d' % (len(str(total)), pos, total)
123 else:
123 else:
124 add = str(pos)
124 add = b'%d' % pos
125 elif indicator.startswith('item') and item:
125 elif indicator.startswith('item') and item:
126 slice = 'end'
126 slice = 'end'
127 if '-' in indicator:
127 if '-' in indicator:
General Comments 0
You need to be logged in to leave comments. Login now