##// END OF EJS Templates
dispatch: make hg --profile wrap reposetup...
Arun Kulshreshtha -
r30006:b19c2679 default
parent child Browse files
Show More
@@ -774,7 +774,8 b' def _dispatch(req):'
774 # Check abbreviation/ambiguity of shell alias.
774 # Check abbreviation/ambiguity of shell alias.
775 shellaliasfn = _checkshellalias(lui, ui, args)
775 shellaliasfn = _checkshellalias(lui, ui, args)
776 if shellaliasfn:
776 if shellaliasfn:
777 return shellaliasfn()
777 with profiling.maybeprofile(lui):
778 return shellaliasfn()
778
779
779 # check for fallback encoding
780 # check for fallback encoding
780 fallback = lui.config('ui', 'fallbackencoding')
781 fallback = lui.config('ui', 'fallbackencoding')
@@ -844,7 +845,7 b' def _dispatch(req):'
844 elif not cmd:
845 elif not cmd:
845 return commands.help_(ui, 'shortlist')
846 return commands.help_(ui, 'shortlist')
846
847
847 if True:
848 with profiling.maybeprofile(lui):
848 repo = None
849 repo = None
849 cmdpats = args[:]
850 cmdpats = args[:]
850 if not _cmdattr(ui, cmd, func, 'norepo'):
851 if not _cmdattr(ui, cmd, func, 'norepo'):
@@ -904,11 +905,10 b' def _dispatch(req):'
904
905
905 def _runcommand(ui, options, cmd, cmdfunc):
906 def _runcommand(ui, options, cmd, cmdfunc):
906 """Run a command function, possibly with profiling enabled."""
907 """Run a command function, possibly with profiling enabled."""
907 with profiling.maybeprofile(ui):
908 try:
908 try:
909 return cmdfunc()
909 return cmdfunc()
910 except error.SignatureError:
910 except error.SignatureError:
911 raise error.CommandError(cmd, _('invalid arguments'))
911 raise error.CommandError(cmd, _('invalid arguments'))
912
912
913 def _exceptionwarning(ui):
913 def _exceptionwarning(ui):
914 """Produce a warning message for the current active exception"""
914 """Produce a warning message for the current active exception"""
General Comments 0
You need to be logged in to leave comments. Login now