mercurial/scmutil.py
changeset 39928 61f39a892168
parent 39921 1857f50a9643
child 40042 ca9d0c93acea
equal deleted inserted replaced
39927:6335c0de80fa 39928:61f39a892168
   982             # NOTE: the filtering and sorting might belong to createmarkers.
   982             # NOTE: the filtering and sorting might belong to createmarkers.
   983             torev = unfi.changelog.rev
   983             torev = unfi.changelog.rev
   984             sortfunc = lambda ns: torev(ns[0][0])
   984             sortfunc = lambda ns: torev(ns[0][0])
   985             rels = []
   985             rels = []
   986             for ns, s in sorted(replacements.items(), key=sortfunc):
   986             for ns, s in sorted(replacements.items(), key=sortfunc):
   987                 for n in ns:
   987                 rel = (tuple(unfi[n] for n in ns), tuple(unfi[m] for m in s))
   988                     rel = (unfi[n], tuple(unfi[m] for m in s))
   988                 rels.append(rel)
   989                     rels.append(rel)
       
   990             if rels:
   989             if rels:
   991                 obsolete.createmarkers(repo, rels, operation=operation,
   990                 obsolete.createmarkers(repo, rels, operation=operation,
   992                                        metadata=metadata)
   991                                        metadata=metadata)
   993         else:
   992         else:
   994             from . import repair # avoid import cycle
   993             from . import repair # avoid import cycle