[PATCH] completion: add a debuglabelcomplete command
Kevin Bullock
kbullock+mercurial at ringworld.org
Thu Mar 21 12:31:02 CDT 2013
On 21 Mar 2013, at 11:28 AM, Bryan O'Sullivan wrote:
> # HG changeset patch
> # User Bryan O'Sullivan <bryano at fb.com>
> # Date 1363883331 25200
> # Node ID 9335c605b08ae8c5327711ddf47a42e8f729211d
> # Parent fff3a811451082b9f47909c38e7c6d3b15177b34
> completion: add a debuglabelcomplete command
>
> When completing a "label" (a symbolic name for a commit), the
> bash_completion script currently has to invoke hg three times. For
> a large repository, the cost of starting up and loading all the
> necessary context over and over is very high.
>
> For instance, in mozilla-central:
>
> time (export HGPLAIN=1; hg tags -q; hg bookmarks -q; hg branches) >/dev/null
> 0.446 sec
>
> Compare with the debuglabelcomplete command that this commit adds:
>
> time hg debuglabelcomplete >/dev/null
> 0.148 sec
>
> This greatly helps responsiveness.
+1, LGTM.
pacem in terris / мир / शान्ति / سَلاَم / 平和
Kevin R. Bullock
More information about the Mercurial-devel
mailing list