[PATCH 2 of 2 v4] dispatch: make hg --profile wrap reposetup

Yuya Nishihara yuya at tcha.org
Fri Sep 23 08:49:59 EDT 2016


On Thu, 22 Sep 2016 12:45:26 -0700, Arun Kulshreshtha wrote:
> # HG changeset patch
> # User Arun Kulshreshtha <kulshrax at fb.com>
> # Date 1474572990 25200
> #      Thu Sep 22 12:36:30 2016 -0700
> # Node ID 921577f5e9bfc3c059a8eb357796736f9edbdcd0
> # Parent  75b224273359ed924528491efb88c612f3caa4ca
> dispatch: make hg --profile wrap reposetup

> @@ -844,7 +845,7 @@
>      elif not cmd:
>          return commands.help_(ui, 'shortlist')
>  
> -    if True:
> +    with profiling.maybeprofile(lui):
>          repo = None
>          cmdpats = args[:]
>          if not _cmdattr(ui, cmd, func, 'norepo'):

As a follow-up patch, maybe we should move --version and --help to
maybeprofile() block.


More information about the Mercurial-devel mailing list