--- a/hgext/infinitepush/fileindexapi.py Fri Mar 30 12:50:06 2018 -0700
+++ b/hgext/infinitepush/fileindexapi.py Tue Mar 27 14:15:42 2018 +0530
@@ -15,7 +15,7 @@
import os
-from mercurial import util
+from mercurial.utils import stringutil
from . import indexapi
@@ -77,7 +77,7 @@
def _listbookmarks(self, pattern):
if pattern.endswith('*'):
pattern = 're:^' + pattern[:-1] + '.*'
- kind, pat, matcher = util.stringmatcher(pattern)
+ kind, pat, matcher = stringutil.stringmatcher(pattern)
prefixlen = len(self._bookmarkmap) + 1
for dirpath, _, books in self._repo.vfs.walk(self._bookmarkmap):
for book in books: