compat: search for stringmatcher in the new location
More of util has been split into sub modules.
--- a/hgext3rd/topic/revset.py Thu Mar 29 14:13:13 2018 +0200
+++ b/hgext3rd/topic/revset.py Thu Mar 29 18:34:32 2018 +0200
@@ -15,7 +15,11 @@
try:
mkmatcher = revset._stringmatcher
except AttributeError:
- mkmatcher = util.stringmatcher
+ try:
+ from mercurial.utils import stringutil
+ mkmatcher = stringutil.stringmatcher
+ except (ImportError, AttributeError):
+ mkmatcher = util.stringmatcher
revsetpredicate = registrar.revsetpredicate()