[PATCH 4 of 4 stable] largefiles: don't walk through all ignored files

Mads Kiilerich mads at kiilerich.com
Fri Dec 21 13:56:03 CST 2012


On 12/21/2012 08:14 PM, Kevin Bullock wrote:
> On Dec 21, 2012, at 12:56 PM, Mads Kiilerich wrote:
>
>> # HG changeset patch
>> # User Mads Kiilerich <madski at unity3d.com>
>> # Date 1355422746 -3600
>> # Branch stable
>> # Node ID e4654db0c8f807bbc7d4ceaa30661dbbbbbbb234
>> # Parent  35c531de3fa7d96feca31fcff87d55b40dd8b45f
>> largefiles: don't walk through all ignored files
>>
>> Problem: 'hg status' with largefiles enabled would walk through all ignored
>> files. That was obviously wrong and made it slow if a lot of files were
>> .hgignored or the cache was cold.
>>
>> It seems like there was a reason to this, but other improvements has rendered
>> this unnecessary.
>>
>> Solution: .hgignore is now only ignored when that is requested.
> Eh? Do you mean "now only _consulted_" ?

No. It always ran status as if --ignored had been specified. With this 
change it only ignores .hgignore if --ignore is specified. (I'm not sure 
it should obey the ignored flag at all when looking at lfdirstate ... 
but this is a conservative change.)

/Mads


More information about the Mercurial-devel mailing list