comparison mercurial/obsolete.py @ 26287:5c217bcc4597

obsolete: remove unused _knownrevs function The call site was removed at cd62532c62a1.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 13 Sep 2015 22:34:58 +0900
parents 077f20eed4b2
children f2788794183a
comparison
equal deleted inserted replaced
26286:4b685712fa45 26287:5c217bcc4597
1043 seen.append(setversion) 1043 seen.append(setversion)
1044 final.reverse() # put small successors set first 1044 final.reverse() # put small successors set first
1045 cache[current] = final 1045 cache[current] = final
1046 return cache[initialnode] 1046 return cache[initialnode]
1047 1047
1048 def _knownrevs(repo, nodes):
1049 """yield revision numbers of known nodes passed in parameters
1050
1051 Unknown revisions are silently ignored."""
1052 torev = repo.changelog.nodemap.get
1053 for n in nodes:
1054 rev = torev(n)
1055 if rev is not None:
1056 yield rev
1057
1058 # mapping of 'set-name' -> <function to compute this set> 1048 # mapping of 'set-name' -> <function to compute this set>
1059 cachefuncs = {} 1049 cachefuncs = {}
1060 def cachefor(name): 1050 def cachefor(name):
1061 """Decorator to register a function as computing the cache for a set""" 1051 """Decorator to register a function as computing the cache for a set"""
1062 def decorator(func): 1052 def decorator(func):