/*
 * Copyright 2000-2013 JetBrains s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.intellij.vcs.log.parser;

import com.intellij.vcs.log.Hash;
import com.intellij.vcs.log.TimedVcsCommit;
import org.jetbrains.annotations.NotNull;

import java.util.List;

public class SimpleCommit implements TimedVcsCommit {

  private final Hash myHash;
  private final List<Hash> myParents;
  private final long myTime;

  public SimpleCommit(Hash commitHash, List<Hash> parentHashes, long time) {
    myHash = commitHash;
    myParents = parentHashes;
    myTime = time;
  }

  @Override
  public long getAuthorTime() {
    return myTime;
  }

  @NotNull
  @Override
  public Hash getHash() {
    return myHash;
  }

  @NotNull
  @Override
  public List<Hash> getParents() {
    return myParents;
  }
}

@@ -1309,11 +1309,410 @@
 nts;%0A  %7D
+%0A%0A  @Override%0A  public boolean equals(Object o) %7B%0A    if (this == o) return true;%0A    if (o == null %7C%7C getClass() != o.getClass()) return false;%0A%0A    SimpleCommit commit = (SimpleCommit)o;%0A%0A    if (myHash != null ? !myHash.equals(commit.myHash) : commit.myHash != null) return false;%0A%0A    return true;%0A  %7D%0A%0A  @Override%0A  public int hashCode() %7B%0A    return myHash != null ? myHash.hashCode() : 0;%0A  %7D
 %0A%7D%0A

Fix parser test: implement equals for SimpleCommit