Esempio n. 1
0
 // Helper method for setting the state of the given tracked object to the corresponding
 // state in the given commit
 private void LoadStateOfCommitForTrackedObject(ICommit commit, VersionController trackedObject, int trackedObjectIndex)
 {
     if (commit.ObjectIsTrackedInThisCommit(trackedObject))
     {
         trackedObject.ResetToVersion(commit.getObjectVersion(trackedObject));
     }
     else
     {
         trackedObject.ResetToInitialState();
         trackedObjects.RemoveAt(trackedObjectIndex);
     }
 }