# HG changeset patch # User Matt Mackall # Date 2010-05-28 19:41:11 # Node ID 054549ccb6803e48069b1615dd270ce0c692d9de # Parent e655b378ce735fd88ba68539e0c6ad4c403a190e status: avoid performance regression when no .hgsub is present (introduced by 24ce8f0c0a39) diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -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