Modeling revision code