comparison mercurial/localrepo.py @ 18364:6252b4f1c4b4

subrepos: process subrepos in sorted order Add sorted() in places found by testing with PYTHONHASHSEED=random and code inspection. An alternative to sprinkling sorted() all over would be to change substate to a custom dict with sorted iterators...
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 12 Dec 2012 02:38:14 +0100
parents 752f77ef7202
children f3b21beb9802
comparison
equal deleted inserted replaced
18363:c6e033a7dd38 18364:6252b4f1c4b4
1498 match.bad = bad 1498 match.bad = bad
1499 1499
1500 if working: # we need to scan the working dir 1500 if working: # we need to scan the working dir
1501 subrepos = [] 1501 subrepos = []
1502 if '.hgsub' in self.dirstate: 1502 if '.hgsub' in self.dirstate:
1503 subrepos = ctx2.substate.keys() 1503 subrepos = sorted(ctx2.substate)
1504 s = self.dirstate.status(match, subrepos, listignored, 1504 s = self.dirstate.status(match, subrepos, listignored,
1505 listclean, listunknown) 1505 listclean, listunknown)
1506 cmp, modified, added, removed, deleted, unknown, ignored, clean = s 1506 cmp, modified, added, removed, deleted, unknown, ignored, clean = s
1507 1507
1508 # check for any possibly clean files 1508 # check for any possibly clean files