Mercurial > public > mercurial-scm > hg-stable
diff mercurial/logcmdutil.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 | d64ae4fef471 |
children | be3f33f5e232 |
line wrap: on
line diff
--- a/mercurial/logcmdutil.py Thu Mar 22 21:19:31 2018 +0900 +++ b/mercurial/logcmdutil.py Thu Mar 22 21:56:20 2018 +0900 @@ -35,7 +35,10 @@ templater, util, ) -from .utils import dateutil +from .utils import ( + dateutil, + stringutil, +) def getlimit(opts): """get the log limit according to option -l/--limit""" @@ -260,7 +263,8 @@ extra = ctx.extra() if extra and self.ui.debugflag: for key, value in sorted(extra.items()): - self.ui.write(columns['extra'] % (key, util.escapestr(value)), + self.ui.write(columns['extra'] + % (key, stringutil.escapestr(value)), label='ui.debug log.extra') description = ctx.description().strip()