[PATCH 7 of 7 V2] fncache: clean up fncache during strips

Pierre-Yves David pierre-yves.david at ens-lyon.org
Mon Mar 31 20:39:07 CDT 2014



On 03/31/2014 04:19 PM, Durham Goode wrote:
> +    def remove(self, fn):
> +        if self.entries is None:
> +            self._load()
> +        if fn in self.entries:
> +            self._dirty = True
> +            self.entries.remove(fn)

You can same the double lookup by using exception catching.

Not sure if this is faster.


-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list