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