Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/dispatch.py @ 7646:e62a456b8dc5
error: move SignatureError
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 Jan 2009 13:51:43 -0600 |
parents | 020a896a5292 |
children | 30e95eafc1d0 |
comparison
equal
deleted
inserted
replaced
7645:020a896a5292 | 7646:e62a456b8dc5 |
---|---|
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") |