mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
status: avoid performance regression when no .hgsub is present
(introduced by 3067d5de9e6c)
This commit is contained in:
parent
9be5ff2737
commit
26c38ffe0e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user