exchange: trivial simplification
Both sides of the condition do essentially the same thing, except one
with fastpath=True.
No functional changes.
--- a/mercurial/exchange.py Mon Aug 05 20:08:23 2024 +0200
+++ b/mercurial/exchange.py Fri May 05 06:08:36 2023 -0600
@@ -1278,18 +1278,18 @@
):
# push everything,
# use the fast path, no race possible on push
- cg = changegroup.makechangegroup(
- pushop.repo,
- outgoing,
- b'01',
- b'push',
- fastpath=True,
- bundlecaps=bundlecaps,
- )
+ fastpath = True
else:
- cg = changegroup.makechangegroup(
- pushop.repo, outgoing, b'01', b'push', bundlecaps=bundlecaps
- )
+ fastpath = False
+
+ cg = changegroup.makechangegroup(
+ pushop.repo,
+ outgoing,
+ b'01',
+ b'push',
+ fastpath=fastpath,
+ bundlecaps=bundlecaps,
+ )
# apply changegroup to remote
# local repo finds heads on server, finds out what