mercurial/dispatch.py
changeset 16686 67964cda8701
parent 16683 525fdb738975
child 16705 c2d9ef43ff6c
equal deleted inserted replaced
16685:43d55088415a 16686:67964cda8701
   704 def lsprofile(ui, func, fp):
   704 def lsprofile(ui, func, fp):
   705     format = ui.config('profiling', 'format', default='text')
   705     format = ui.config('profiling', 'format', default='text')
   706     field = ui.config('profiling', 'sort', default='inlinetime')
   706     field = ui.config('profiling', 'sort', default='inlinetime')
   707     climit = ui.configint('profiling', 'nested', default=5)
   707     climit = ui.configint('profiling', 'nested', default=5)
   708 
   708 
   709     if not format in ['text', 'kcachegrind']:
   709     if format not in ['text', 'kcachegrind']:
   710         ui.warn(_("unrecognized profiling format '%s'"
   710         ui.warn(_("unrecognized profiling format '%s'"
   711                     " - Ignored\n") % format)
   711                     " - Ignored\n") % format)
   712         format = 'text'
   712         format = 'text'
   713 
   713 
   714     try:
   714     try: