Mercurial > public > mercurial-scm > hg
comparison mercurial/scmutil.py @ 40041:ca9d0c93acea
cleanupnodes: update comment to drop mention of filtering
Since changeset 1857f50a9643 drop the filtering, we should not longer mention it
in code comment.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 03 Oct 2018 11:59:47 +0200 |
parents | 61f39a892168 |
children | 1d09ba0d2ed3 |
comparison
equal
deleted
inserted
replaced
40040:67b93cd847fb | 40041:ca9d0c93acea |
---|---|
977 # If a node is already obsoleted, and we want to obsolete it | 977 # If a node is already obsoleted, and we want to obsolete it |
978 # without a successor, skip that obssolete request since it's | 978 # without a successor, skip that obssolete request since it's |
979 # unnecessary. That's the "if s or not isobs(n)" check below. | 979 # unnecessary. That's the "if s or not isobs(n)" check below. |
980 # Also sort the node in topology order, that might be useful for | 980 # Also sort the node in topology order, that might be useful for |
981 # some obsstore logic. | 981 # some obsstore logic. |
982 # NOTE: the filtering and sorting might belong to createmarkers. | 982 # NOTE: the 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 rel = (tuple(unfi[n] for n in ns), tuple(unfi[m] for m in s)) | 987 rel = (tuple(unfi[n] for n in ns), tuple(unfi[m] for m in s)) |