comparison hgext/histedit.py @ 36167:73621823a1ac

histedit: convert bool to bytestring manually Yes, this format has 'True' and 'False' in it. I'm sorry, as it's almost certainly my fault. Differential Revision: https://phab.mercurial-scm.org/D2240
author Augie Fackler <augie@google.com>
date Tue, 13 Feb 2018 17:25:25 -0500
parents 784a85c87c22
children be73fa5b42d3
comparison
equal deleted inserted replaced
36166:ccf7ae119769 36167:73621823a1ac
342 342
343 def _write(self, fp): 343 def _write(self, fp):
344 fp.write('v1\n') 344 fp.write('v1\n')
345 fp.write('%s\n' % node.hex(self.parentctxnode)) 345 fp.write('%s\n' % node.hex(self.parentctxnode))
346 fp.write('%s\n' % node.hex(self.topmost)) 346 fp.write('%s\n' % node.hex(self.topmost))
347 fp.write('%s\n' % self.keep) 347 fp.write('%s\n' % ('True' if self.keep else 'False'))
348 fp.write('%d\n' % len(self.actions)) 348 fp.write('%d\n' % len(self.actions))
349 for action in self.actions: 349 for action in self.actions:
350 fp.write('%s\n' % action.tostate()) 350 fp.write('%s\n' % action.tostate())
351 fp.write('%d\n' % len(self.replacements)) 351 fp.write('%d\n' % len(self.replacements))
352 for replacement in self.replacements: 352 for replacement in self.replacements: