move resetting of dirstate to flush, we don't need to do it on every commit
move resetting of dirstate to flush, we don't need to do it on every commit

corecode/fromcvs,corecode/fromcvs,corecode/fromcvs