Add get_bookmarks() method

Differential Revision: https://phabricator.intern.facebook.com/D3791007
This commit is contained in:
Stanislau Hlebik 2016-08-31 01:44:59 -07:00
parent 48389f12cc
commit 812bc05f85

View File

@ -36,6 +36,10 @@ class indexapi(object):
"""Returns the node for the given bookmark. None if it doesn't exist."""
raise NotImplementedError()
def getbookmarks(self, query):
"""Returns bookmarks that match the query"""
raise NotImplementedError()
class fileindexapi(indexapi):
def __init__(self, repo):
super(fileindexapi, self).__init__()