comparison mercurial/logcmdutil.py @ 37084: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
comparison
equal deleted inserted replaced
37083:f99d64e8a4e4 37084:f0b6fbea00cf
33 smartset, 33 smartset,
34 templatekw, 34 templatekw,
35 templater, 35 templater,
36 util, 36 util,
37 ) 37 )
38 from .utils import dateutil 38 from .utils import (
39 dateutil,
40 stringutil,
41 )
39 42
40 def getlimit(opts): 43 def getlimit(opts):
41 """get the log limit according to option -l/--limit""" 44 """get the log limit according to option -l/--limit"""
42 limit = opts.get('limit') 45 limit = opts.get('limit')
43 if limit: 46 if limit:
258 label='ui.note log.copies') 261 label='ui.note log.copies')
259 262
260 extra = ctx.extra() 263 extra = ctx.extra()
261 if extra and self.ui.debugflag: 264 if extra and self.ui.debugflag:
262 for key, value in sorted(extra.items()): 265 for key, value in sorted(extra.items()):
263 self.ui.write(columns['extra'] % (key, util.escapestr(value)), 266 self.ui.write(columns['extra']
267 % (key, stringutil.escapestr(value)),
264 label='ui.debug log.extra') 268 label='ui.debug log.extra')
265 269
266 description = ctx.description().strip() 270 description = ctx.description().strip()
267 if description: 271 if description:
268 if self.ui.verbose: 272 if self.ui.verbose: