changeset 22273:e6d01239f779

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.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 20 Aug 2014 18:11:23 -0700
parents 406181ee335f
children 10e87c67f1c7
files mercurial/commands.py mercurial/obsolete.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)