Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 11227:054549ccb680 stable
status: avoid performance regression when no .hgsub is present
(introduced by 24ce8f0c0a39)
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 28 May 2010 14:41:11 -0500 |
parents | 17031fea4e95 |
children | 5cdac5c35e68 |
comparison
equal
deleted
inserted
replaced
11221:e655b378ce73 | 11227:054549ccb680 |
---|---|
1008 if f not in ctx1: | 1008 if f not in ctx1: |
1009 self.ui.warn('%s: %s\n' % (self.dirstate.pathto(f), msg)) | 1009 self.ui.warn('%s: %s\n' % (self.dirstate.pathto(f), msg)) |
1010 match.bad = bad | 1010 match.bad = bad |
1011 | 1011 |
1012 if working: # we need to scan the working dir | 1012 if working: # we need to scan the working dir |
1013 subrepos = ctx1.substate.keys() | 1013 subrepos = [] |
1014 if '.hgsub' in self.dirstate: | |
1015 subrepos = ctx1.substate.keys() | |
1014 s = self.dirstate.status(match, subrepos, listignored, | 1016 s = self.dirstate.status(match, subrepos, listignored, |
1015 listclean, listunknown) | 1017 listclean, listunknown) |
1016 cmp, modified, added, removed, deleted, unknown, ignored, clean = s | 1018 cmp, modified, added, removed, deleted, unknown, ignored, clean = s |
1017 | 1019 |
1018 # check for any possibly clean files | 1020 # check for any possibly clean files |