localrepo: optimize internode status calls using withflags
Introduce manifestdict.withflags() to get a set of all files which have any
flags set, since these are likely to be a minority. Otherwise checking .flags()
for every file is a lot of dictionary lookups and is quite slow.
try:
import coverage
getattr(coverage, 'process_startup', lambda: None)()
except ImportError:
pass