[PATCH 1 of 2 RFC] completion: add a debugpathcomplete command

Kevin Bullock kbullock+mercurial at ringworld.org
Thu Mar 14 11:27:11 CDT 2013


On 14 Mar 2013, at 10:52 AM, Bryan O'Sullivan wrote:

> On Wed, Mar 13, 2013 at 6:53 PM, Kevin Bullock <kbullock+mercurial at ringworld.org> wrote:
> 
> dirstate has __getitem__, __iter__, and __contains__ implementations that should prevent you needing to frob its _map directly here. It'll even do the sorting.
> 
> I actually don't want the traversal to be sorted in an additional step, because then I'm sorting 200,000 items instead of the handful that actually match. As we know from painful experience, such a sort adds 0.2 seconds to the execution time for no benefit.

I figured you'd say that ;) Digging into the map directly is still ugly though.

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
Kevin R. Bullock



More information about the Mercurial-devel mailing list