Mercurial > hg
changeset 39923:61f39a892168
cleanupnodes: pass multiple predecessors to `createmarkers` directly
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 27 Sep 2018 12:06:32 +0200 |
parents | 6335c0de80fa |
children | 7ea24d05d702 |
files | mercurial/scmutil.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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)