comparison hgext3rd/topic/revset.py @ 3613:bf583a8dc637

compat: search for stringmatcher in the new location More of util has been split into sub modules.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 29 Mar 2018 18:34:32 +0200
parents 31493a1b0e39
children 054d288680b4
comparison
equal deleted inserted replaced
3612:33b718191bc9 3613:bf583a8dc637
13 ) 13 )
14 14
15 try: 15 try:
16 mkmatcher = revset._stringmatcher 16 mkmatcher = revset._stringmatcher
17 except AttributeError: 17 except AttributeError:
18 mkmatcher = util.stringmatcher 18 try:
19 from mercurial.utils import stringutil
20 mkmatcher = stringutil.stringmatcher
21 except (ImportError, AttributeError):
22 mkmatcher = util.stringmatcher
19 23
20 revsetpredicate = registrar.revsetpredicate() 24 revsetpredicate = registrar.revsetpredicate()
21 25
22 @revsetpredicate('topic([topic])') 26 @revsetpredicate('topic([topic])')
23 def topicset(repo, subset, x): 27 def topicset(repo, subset, x):