comparison mercurial/localrepo.py @ 12127:36a65283c3af

commit: sort subrepos before committing for stable test output
author Martin Geisler <mg@lazybytes.net>
date Tue, 31 Aug 2010 16:36:31 +0200
parents fddacca3202e
children af8c4929931c
comparison
equal deleted inserted replaced
12126:779098953457 12127:36a65283c3af
875 edited = (text != cctx._text) 875 edited = (text != cctx._text)
876 876
877 # commit subs 877 # commit subs
878 if subs or removedsubs: 878 if subs or removedsubs:
879 state = wctx.substate.copy() 879 state = wctx.substate.copy()
880 for s in subs: 880 for s in sorted(subs):
881 sub = wctx.sub(s) 881 sub = wctx.sub(s)
882 self.ui.status(_('committing subrepository %s\n') % 882 self.ui.status(_('committing subrepository %s\n') %
883 subrepo.relpath(sub)) 883 subrepo.relpath(sub))
884 sr = sub.commit(cctx._text, user, date) 884 sr = sub.commit(cctx._text, user, date)
885 state[s] = (state[s][0], sr) 885 state[s] = (state[s][0], sr)