##// END OF EJS Templates
dispatch: make hg --profile wrap reposetup...
Arun Kulshreshtha -
r30006:b19c2679 default
parent child Browse files
Show More
@@ -774,6 +774,7 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 with profiling.maybeprofile(lui):
777 return shellaliasfn()
778 return shellaliasfn()
778
779
779 # check for fallback encoding
780 # check for fallback encoding
@@ -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,7 +905,6 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:
General Comments 0
You need to be logged in to leave comments. Login now