equal
deleted
inserted
replaced
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: |