Mercurial > hg > mercurial-source
changeset 18765:69e4787b6867
bash_completion: match more narrowly
This greatly helps completion performance for most commands that deal
with files.
In a working dir with 150,000 files, where we want to complete the name
of a modified file under a path beginning with "a", from the root of
the working dir:
(old) hg status -nm . 1.7 sec
(new) hg status -nm "glob:a**" 0.3
Even "hg add" becomes a little faster, in spite of being the worst
case (matching untracked files).
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Thu, 14 Mar 2013 16:49:02 -0700 (2013-03-14) |
parents | 64b5562550e2 |
children | e3e601969ba1 |
files | contrib/bash_completion |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff