Show More
@@ -968,9 +968,11 b' def cleanupnodes(repo, replacements, ope' | |||
|
968 | 968 | isobs = unfi.obsstore.successors.__contains__ |
|
969 | 969 | torev = unfi.changelog.rev |
|
970 | 970 | sortfunc = lambda ns: torev(ns[0]) |
|
971 | rels = [(unfi[n], tuple(unfi[m] for m in s)) | |
|
972 |
|
|
|
973 |
|
|
|
971 | rels = [] | |
|
972 | for n, s in sorted(replacements.items(), key=sortfunc): | |
|
973 | if s or not isobs(n): | |
|
974 | rel = (unfi[n], tuple(unfi[m] for m in s)) | |
|
975 | rels.append(rel) | |
|
974 | 976 | if rels: |
|
975 | 977 | obsolete.createmarkers(repo, rels, operation=operation, |
|
976 | 978 | metadata=metadata) |
General Comments 0
You need to be logged in to leave comments.
Login now