mercurial/exchange.py
changeset 51793 2f8e7e384178
parent 51658 a0f1378b932e
child 51858 607e94e01851
--- 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