comparison mercurial/exchange.py @ 51797:2f8e7e384178

exchange: trivial simplification Both sides of the condition do essentially the same thing, except one with fastpath=True. No functional changes.
author Felipe Contreras <felipe.contreras@gmail.com>
date Fri, 05 May 2023 06:08:36 -0600
parents a0f1378b932e
children 607e94e01851
comparison
equal deleted inserted replaced
51788:9af1acc1ffab 51797:2f8e7e384178
1276 if pushop.revs is None and not ( 1276 if pushop.revs is None and not (
1277 outgoing.excluded or pushop.repo.changelog.filteredrevs 1277 outgoing.excluded or pushop.repo.changelog.filteredrevs
1278 ): 1278 ):
1279 # push everything, 1279 # push everything,
1280 # use the fast path, no race possible on push 1280 # use the fast path, no race possible on push
1281 cg = changegroup.makechangegroup( 1281 fastpath = True
1282 pushop.repo,
1283 outgoing,
1284 b'01',
1285 b'push',
1286 fastpath=True,
1287 bundlecaps=bundlecaps,
1288 )
1289 else: 1282 else:
1290 cg = changegroup.makechangegroup( 1283 fastpath = False
1291 pushop.repo, outgoing, b'01', b'push', bundlecaps=bundlecaps 1284
1292 ) 1285 cg = changegroup.makechangegroup(
1286 pushop.repo,
1287 outgoing,
1288 b'01',
1289 b'push',
1290 fastpath=fastpath,
1291 bundlecaps=bundlecaps,
1292 )
1293 1293
1294 # apply changegroup to remote 1294 # apply changegroup to remote
1295 # local repo finds heads on server, finds out what 1295 # local repo finds heads on server, finds out what
1296 # revs it must push. once revs transferred, if server 1296 # revs it must push. once revs transferred, if server
1297 # finds it has different heads (someone else won 1297 # finds it has different heads (someone else won