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