obsolete: rename `allmarkers` to `getmarkers`
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 20 Aug 2014 18:11:23 -0700
changeset 22273 e6d01239f779
parent 22272 406181ee335f
child 22274 10e87c67f1c7
obsolete: rename `allmarkers` to `getmarkers` This function is going to gain a "nodes" argument to filter the markers to the ones relevant to <nodes> only.
mercurial/commands.py
mercurial/obsolete.py
--- a/mercurial/commands.py	Wed Aug 20 00:43:08 2014 -0700
+++ b/mercurial/commands.py	Wed Aug 20 18:11:23 2014 -0700
@@ -2363,7 +2363,7 @@
         finally:
             l.release()
     else:
-        for m in obsolete.allmarkers(repo):
+        for m in obsolete.getmarkers(repo):
             cmdutil.showmarker(ui, m)
 
 @command('debugpathcomplete',
--- a/mercurial/obsolete.py	Wed Aug 20 00:43:08 2014 -0700
+++ b/mercurial/obsolete.py	Wed Aug 20 18:11:23 2014 -0700
@@ -494,8 +494,8 @@
     finally:
         lock.release()
 
-def allmarkers(repo):
-    """all obsolete markers known in a repository"""
+def getmarkers(repo):
+    """returns markers known in a repository"""
     for markerdata in repo.obsstore:
         yield marker(repo, markerdata)