# HG changeset patch # User Anton Shestakov # Date 1649372292 -10800 # Node ID 7847e080026384454cba02ce9ac69f10672d3734 # Parent b5c57fb2ffded249c56a0d07e22859ba78e0325d topic: drop compatibility with hg 3.6 (7d132557e44a) diff -r b5c57fb2ffde -r 7847e0800263 hgext3rd/topic/revset.py --- 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()