comparison mercurial/obsolete.py @ 17825:3cc06457f15e

obsolete: rename `getobscache` into `getrevs` The old name was not very good for two reasons: - caller does not care about "cache", - set of revision returned may not be obsolete at all. The new name was suggested by Kevin Bullock.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Fri, 19 Oct 2012 00:28:13 +0200
parents 072812e9f570
children 46e1a4e24225
comparison
equal deleted inserted replaced
17824:221c9c3146eb 17825:3cc06457f15e
374 assert name not in cachefuncs 374 assert name not in cachefuncs
375 cachefuncs[name] = func 375 cachefuncs[name] = func
376 return func 376 return func
377 return decorator 377 return decorator
378 378
379 def getobscache(repo, name): 379 def getrevs(repo, name):
380 """Return the set of revision that belong to the <name> set 380 """Return the set of revision that belong to the <name> set
381 381
382 Such access may compute the set and cache it for future use""" 382 Such access may compute the set and cache it for future use"""
383 if not repo.obsstore: 383 if not repo.obsstore:
384 return () 384 return ()