diff 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
line wrap: on
line diff
--- a/mercurial/obsolete.py	Sun Oct 14 15:10:13 2012 -0400
+++ b/mercurial/obsolete.py	Fri Oct 19 00:28:13 2012 +0200
@@ -376,7 +376,7 @@
         return func
     return decorator
 
-def getobscache(repo, name):
+def getrevs(repo, name):
     """Return the set of revision that belong to the <name> set
 
     Such access may compute the set and cache it for future use"""