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.
--- 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)