Mercurial > public > mercurial-scm > hg-stable
diff hgext/journal.py @ 37087:f0b6fbea00cf
stringutil: bulk-replace call sites to point to new module
This might conflict with other patches floating around, sorry.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 22 Mar 2018 21:56:20 +0900 |
parents | e77cee5de1c7 |
children | a8a902d7176e |
line wrap: on
line diff
--- a/hgext/journal.py Thu Mar 22 21:19:31 2018 +0900 +++ b/hgext/journal.py Thu Mar 22 21:56:20 2018 +0900 @@ -36,7 +36,10 @@ registrar, util, ) -from mercurial.utils import dateutil +from mercurial.utils import ( + dateutil, + stringutil, +) cmdtable = {} command = registrar.command(cmdtable) @@ -376,9 +379,9 @@ """ if namespace is not None: - namespace = util.stringmatcher(namespace)[-1] + namespace = stringutil.stringmatcher(namespace)[-1] if name is not None: - name = util.stringmatcher(name)[-1] + name = stringutil.stringmatcher(name)[-1] for entry in self: if namespace is not None and not namespace(entry.namespace): continue