Browse Source

Restore TestRepository.getClock(), it is used by Gerrit/Gitiles

Change-Id: I88880f18998e33377c0c684cbd8007b5d27d76e7
Signed-off-by: Terry Parker <tparker@google.com>
stable-4.2
Terry Parker 9 years ago
parent
commit
2c70d183f5
  1. 11
      org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java

11
org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java

@ -208,6 +208,17 @@ public class TestRepository<R extends Repository> {
return new Date(mockSystemReader.getCurrentTime()); return new Date(mockSystemReader.getCurrentTime());
} }
/**
* @return current date.
*
* @deprecated Use {@link #getDate()} instead.
*/
@Deprecated
public Date getClock() {
// Remove once Gitiles and Gerrit are using the updated JGit.
return getDate();
}
/** @return timezone used for default identities. */ /** @return timezone used for default identities. */
public TimeZone getTimeZone() { public TimeZone getTimeZone() {
return mockSystemReader.getTimeZone(); return mockSystemReader.getTimeZone();

Loading…
Cancel
Save