# HG changeset patch # User Pierre-Yves David # Date 1522341272 -7200 # Node ID bf583a8dc637e4ec4668d59dddcbebb2eb7efd12 # Parent 33b718191bc9796fd1d5b52de6a8463fa260091c compat: search for stringmatcher in the new location More of util has been split into sub modules. diff -r 33b718191bc9 -r bf583a8dc637 hgext3rd/topic/revset.py --- 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()