diff hgext3rd/topic/revset.py @ 6220:7847e0800263

topic: drop compatibility with hg 3.6 (7d132557e44a)
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 08 Apr 2022 01:58:12 +0300
parents f27ef537bf83
children a1a9e6e43d4c
line wrap: on
line diff
--- a/hgext3rd/topic/revset.py	Tue Apr 05 18:34:14 2022 +0300
+++ b/hgext3rd/topic/revset.py	Fri Apr 08 01:58:12 2022 +0300
@@ -13,13 +13,10 @@
 )
 
 try:
-    mkmatcher = revset._stringmatcher
-except AttributeError:
-    try:
-        from mercurial.utils import stringutil
-        mkmatcher = stringutil.stringmatcher
-    except (ImportError, AttributeError):
-        mkmatcher = util.stringmatcher
+    from mercurial.utils import stringutil
+    mkmatcher = stringutil.stringmatcher
+except (ImportError, AttributeError):
+    mkmatcher = util.stringmatcher
 
 revsetpredicate = registrar.revsetpredicate()