[PATCH evolve-ext] directaccess: don't try to partialmatch '.'

Pierre-Yves David pierre-yves.david at ens-lyon.org
Wed Aug 12 18:38:40 CDT 2015



On 08/12/2015 04:08 PM, Siddharth Agarwal wrote:
> # HG changeset patch
> # User Siddharth Agarwal <sid0 at fb.com>
> # Date 1439420885 25200
> #      Wed Aug 12 16:08:05 2015 -0700
> # Node ID 6884c640f67892bbebb5538cbbcda88f8927588f
> # Parent  3dec62fc266eff7c7aa20e3229ffbede1c33d208
> directaccess: don't try to partialmatch '.'
>
> Trying to partialmatch '.' turns out to be (a) pointless and (b) extremely
> slow. On a repo with a million commits, with directaccess enabled,
>
> hg log -r .^::.
>
> goes from 2.1 seconds to 0.5.

Should be just not try partial match on anything that is not a valid hex?

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list