comparison mercurial/obsutil.py @ 51690:493034cc3265

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 a0f1378b932e
children 7f0cb9ee0534
comparison
equal deleted inserted replaced
51689:39e2b2d062c1 51690:493034cc3265
959 return filteredmsgtable[b'diverged'] % changeid 959 return filteredmsgtable[b'diverged'] % changeid
960 elif fate == b'superseded': 960 elif fate == b'superseded':
961 single_successor = short(successors[0][0]) 961 single_successor = short(successors[0][0])
962 return filteredmsgtable[b'superseded'] % (changeid, single_successor) 962 return filteredmsgtable[b'superseded'] % (changeid, single_successor)
963 elif fate == b'superseded_split': 963 elif fate == b'superseded_split':
964
965 succs = [] 964 succs = []
966 for node_id in successors[0]: 965 for node_id in successors[0]:
967 succs.append(short(node_id)) 966 succs.append(short(node_id))
968 967
969 if len(succs) <= 2: 968 if len(succs) <= 2: