equal
deleted
inserted
replaced
369 |
369 |
370 def _runcommand(ui, options, cmd, cmdfunc): |
370 def _runcommand(ui, options, cmd, cmdfunc): |
371 def checkargs(): |
371 def checkargs(): |
372 try: |
372 try: |
373 return cmdfunc() |
373 return cmdfunc() |
374 except util.SignatureError: |
374 except error.SignatureError: |
375 raise error.ParseError(cmd, _("invalid arguments")) |
375 raise error.ParseError(cmd, _("invalid arguments")) |
376 |
376 |
377 if options['profile']: |
377 if options['profile']: |
378 import hotshot, hotshot.stats |
378 import hotshot, hotshot.stats |
379 prof = hotshot.Profile("hg.prof") |
379 prof = hotshot.Profile("hg.prof") |