Show More
@@ -78,6 +78,18 b' from . import (' | |||||
78 | # The most recent changeset (in terms of revlog ordering for the head |
|
78 | # The most recent changeset (in terms of revlog ordering for the head | |
79 | # setting it) for each tag is last. |
|
79 | # setting it) for each tag is last. | |
80 |
|
80 | |||
|
81 | def fnoderevs(ui, repo, revs): | |||
|
82 | """return the list of '.hgtags' fnodes used in a set revisions | |||
|
83 | ||||
|
84 | This is returned as list of unique fnodes. We use a list instead of a set | |||
|
85 | because order matters when it comes to tags.""" | |||
|
86 | unfi = repo.unfiltered() | |||
|
87 | tonode = unfi.changelog.node | |||
|
88 | nodes = [tonode(r) for r in revs] | |||
|
89 | fnodes = _getfnodes(ui, repo, nodes[::-1]) # reversed help the cache | |||
|
90 | fnodes = _filterfnodes(fnodes, nodes) | |||
|
91 | return fnodes | |||
|
92 | ||||
81 | def findglobaltags(ui, repo): |
|
93 | def findglobaltags(ui, repo): | |
82 | '''Find global tags in a repo: return a tagsmap |
|
94 | '''Find global tags in a repo: return a tagsmap | |
83 |
|
95 |
General Comments 0
You need to be logged in to leave comments.
Login now