mercurial/discovery.py
changeset 46780 6266d19556ad
parent 46119 9261f6c1d39b
child 46819 d4ba4d51f85f
--- a/mercurial/discovery.py	Wed Mar 10 18:09:21 2021 +0100
+++ b/mercurial/discovery.py	Wed Jan 13 16:14:58 2021 +0100
@@ -270,9 +270,12 @@
     # C. Update newmap with outgoing changes.
     # This will possibly add new heads and remove existing ones.
     newmap = branchmap.remotebranchcache(
-        (branch, heads[1])
-        for branch, heads in pycompat.iteritems(headssum)
-        if heads[0] is not None
+        repo,
+        (
+            (branch, heads[1])
+            for branch, heads in pycompat.iteritems(headssum)
+            if heads[0] is not None
+        ),
     )
     newmap.update(repo, (ctx.rev() for ctx in missingctx))
     for branch, newheads in pycompat.iteritems(newmap):