comparison mercurial/revlogutils/rewrite.py @ 51699:ca7bde5dbafb

black: format the codebase with 23.3.0 The CI has moved to 23.3.0, which is the last version that supports 3.7 at runtime, so we should honor this change. # skip-blame mass-reformating only
author Rapha?l Gom?s <rgomes@octobus.net>
date Thu, 18 Jul 2024 12:36:12 +0200
parents 7f0cb9ee0534
children 1c5810ce737e
comparison
equal deleted inserted replaced
51698:b0a4de6c14f8 51699:ca7bde5dbafb
256 # for its delta. We need a need new deltas 256 # for its delta. We need a need new deltas
257 if entry[ENTRY_DATA_UNCOMPRESSED_LENGTH] == 0: 257 if entry[ENTRY_DATA_UNCOMPRESSED_LENGTH] == 0:
258 # this revision is empty, we can delta against nullrev 258 # this revision is empty, we can delta against nullrev
259 rewritten_entries[rev] = (nullrev, 0, 0, COMP_MODE_PLAIN) 259 rewritten_entries[rev] = (nullrev, 0, 0, COMP_MODE_PLAIN)
260 else: 260 else:
261
262 text = revlog.rawdata(rev) 261 text = revlog.rawdata(rev)
263 info = revlogutils.revisioninfo( 262 info = revlogutils.revisioninfo(
264 node=entry[ENTRY_NODE_ID], 263 node=entry[ENTRY_NODE_ID],
265 p1=revlog.node(entry[ENTRY_PARENT_1]), 264 p1=revlog.node(entry[ENTRY_PARENT_1]),
266 p2=revlog.node(entry[ENTRY_PARENT_2]), 265 p2=revlog.node(entry[ENTRY_PARENT_2]),