cleanupnodes: pass multiple predecessors to `createmarkers` directly
authorBoris Feld <boris.feld@octobus.net>
Thu, 27 Sep 2018 12:06:32 +0200
changeset 39923 61f39a892168
parent 39922 6335c0de80fa
child 39924 7ea24d05d702
cleanupnodes: pass multiple predecessors to `createmarkers` directly
mercurial/scmutil.py
--- a/mercurial/scmutil.py	Sat Sep 22 14:40:33 2018 +0200
+++ b/mercurial/scmutil.py	Thu Sep 27 12:06:32 2018 +0200
@@ -984,9 +984,8 @@
             sortfunc = lambda ns: torev(ns[0][0])
             rels = []
             for ns, s in sorted(replacements.items(), key=sortfunc):
-                for n in ns:
-                    rel = (unfi[n], tuple(unfi[m] for m in s))
-                    rels.append(rel)
+                rel = (tuple(unfi[n] for n in ns), tuple(unfi[m] for m in s))
+                rels.append(rel)
             if rels:
                 obsolete.createmarkers(repo, rels, operation=operation,
                                        metadata=metadata)