Before I start digging in the code, I wonder if it's possible for hg status to check the files in the cwd without traveling into the subdirs. If it is, then perhaps I can use it to speed up the overlay icons handling in TortoiseHg.