// Helper method for setting the state of all tracked objects to the corresponding // state in the given commit private void LoadStateOfCommit(ICommit commit) { for (int i = 0; i < trackedObjects.Count; i++) { LoadStateOfCommit(commit, trackedObjects[i]); } IEnumerator <VersionController> objectsTrackedInCommit = commit.GetTrackedObjectsEnumerator(); while (objectsTrackedInCommit.MoveNext()) { LoadStateOfCommit(commit, objectsTrackedInCommit.Current); } }