subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1577176 - in /subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl: ISVNRemote.java remote/RemoteSession.java
Date Thu, 13 Mar 2014 14:32:34 GMT
Author: brane
Date: Thu Mar 13 14:32:34 2014
New Revision: 1577176

URL: http://svn.apache.org/r1577176
Log:
Fix the way JavaHL's remote API retreives dated revisions.

[in subversion/bindings/javahl/src/org/apache/subversion/javahl]
* ISVNRemote.java (ISVNRemote.getRevisionByTimestamp): Fix docstrung.
   The timestamp must be in microseconds, not milliseconds.
* remote/RemoteSession.java (RemoteSession.getRevisionByDate):
   Fix conversion from Date when calling getRevisionByTimestamp to
   return microseconds, not nanoseconds.

Modified:
    subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNRemote.java
    subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/remote/RemoteSession.java

Modified: subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNRemote.java
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNRemote.java?rev=1577176&r1=1577175&r2=1577176&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNRemote.java
(original)
+++ subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/ISVNRemote.java
Thu Mar 13 14:32:34 2014
@@ -110,7 +110,7 @@ public interface ISVNRemote
 
     /**
      * Get the latest revision number at the given time, expressed as
-     * the number of milliseconds since the epoch, from the session's
+     * the number of microseconds since the epoch, from the session's
      * repository.
      * @throws ClientException
      */

Modified: subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/remote/RemoteSession.java
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/remote/RemoteSession.java?rev=1577176&r1=1577175&r2=1577176&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/remote/RemoteSession.java
(original)
+++ subversion/trunk/subversion/bindings/javahl/src/org/apache/subversion/javahl/remote/RemoteSession.java
Thu Mar 13 14:32:34 2014
@@ -43,7 +43,7 @@ import java.util.Set;
 import java.io.OutputStream;
 
 import static java.util.concurrent.TimeUnit.MILLISECONDS;
-import static java.util.concurrent.TimeUnit.NANOSECONDS;
+import static java.util.concurrent.TimeUnit.MICROSECONDS;
 
 public class RemoteSession extends JNIObject implements ISVNRemote
 {
@@ -102,7 +102,7 @@ public class RemoteSession extends JNIOb
 
     public long getRevisionByDate(Date date) throws ClientException
     {
-        long timestamp = NANOSECONDS.convert(date.getTime(), MILLISECONDS);
+        long timestamp = MICROSECONDS.convert(date.getTime(), MILLISECONDS);
         return getRevisionByTimestamp(timestamp);
     }
 



Mime
View raw message