status: avoid performance regression when no .hgsub is present

(introduced by 3067d5de9e6c)
This commit is contained in:
Matt Mackall 2010-05-28 14:41:11 -05:00
parent 9be5ff2737
commit 26c38ffe0e

View File

@ -1010,7 +1010,9 @@ class localrepository(repo.repository):
match.bad = bad
if working: # we need to scan the working dir
subrepos = ctx1.substate.keys()
subrepos = []
if '.hgsub' in self.dirstate:
subrepos = ctx1.substate.keys()
s = self.dirstate.status(match, subrepos, listignored,
listclean, listunknown)
cmp, modified, added, removed, deleted, unknown, ignored, clean = s