mercurial/commands.py
changeset 1833 fc959d6ffb13
parent 1832 7a58bf789965
child 1835 bdfb524d728a
equal deleted inserted replaced
1832:7a58bf789965 1833:fc959d6ffb13
  2869                         try:
  2869                         try:
  2870                             u.warn(_('exception raised - generating profile '
  2870                             u.warn(_('exception raised - generating profile '
  2871                                      'anyway\n'))
  2871                                      'anyway\n'))
  2872                         except:
  2872                         except:
  2873                             pass
  2873                             pass
       
  2874                         raise
  2874                 finally:
  2875                 finally:
  2875                     prof.close()
  2876                     prof.close()
  2876                     stats = hotshot.stats.load("hg.prof")
  2877                     stats = hotshot.stats.load("hg.prof")
  2877                     stats.strip_dirs()
  2878                     stats.strip_dirs()
  2878                     stats.sort_stats('time', 'calls')
  2879                     stats.sort_stats('time', 'calls')