diff -r 777a9efdae2d -r 1c2cf2e5dc9b mercurial/dispatch.py --- a/mercurial/dispatch.py Tue Apr 07 20:57:25 2009 +0200 +++ b/mercurial/dispatch.py Wed Apr 08 14:18:20 2009 +0200 @@ -379,25 +379,6 @@ raise error.ParseError(cmd, _("invalid arguments")) if options['profile']: - import hotshot, hotshot.stats - prof = hotshot.Profile("hg.prof") - try: - try: - return prof.runcall(checkargs) - except: - try: - ui.warn(_('exception raised - generating ' - 'profile anyway\n')) - except: - pass - raise - finally: - prof.close() - stats = hotshot.stats.load("hg.prof") - stats.strip_dirs() - stats.sort_stats('time', 'calls') - stats.print_stats(40) - elif options['lsprof']: try: from mercurial import lsprof except ImportError: