]> source.dussan.org Git - jgit.git/commitdiff
Restore TestRepository.getClock(), it is used by Gerrit/Gitiles 70/58770/1
authorTerry Parker <tparker@google.com>
Thu, 22 Oct 2015 22:29:04 +0000 (15:29 -0700)
committerTerry Parker <tparker@google.com>
Thu, 22 Oct 2015 22:29:11 +0000 (15:29 -0700)
Change-Id: I88880f18998e33377c0c684cbd8007b5d27d76e7
Signed-off-by: Terry Parker <tparker@google.com>
org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java

index 98e29d708310dec820f261946cd532335ec2b3ce..251e65f55341f04026a1aa2b641172c29b7c496a 100644 (file)
@@ -208,6 +208,17 @@ public class TestRepository<R extends Repository> {
                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. */
        public TimeZone getTimeZone() {
                return mockSystemReader.getTimeZone();