jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1468812 - in /jackrabbit/oak/trunk/oak-mongomk/src: main/java/org/apache/jackrabbit/mongomk/Revision.java test/java/org/apache/jackrabbit/mongomk/SimpleTest.java
Date Wed, 17 Apr 2013 09:27:47 GMT
Author: mreutegg
Date: Wed Apr 17 09:27:46 2013
New Revision: 1468812

URL: http://svn.apache.org/r1468812
Log:
OAK-780: Revision.fromString() only parses two counter digits

Modified:
    jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/Revision.java
    jackrabbit/oak/trunk/oak-mongomk/src/test/java/org/apache/jackrabbit/mongomk/SimpleTest.java

Modified: jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/Revision.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/Revision.java?rev=1468812&r1=1468811&r2=1468812&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/Revision.java
(original)
+++ jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/Revision.java
Wed Apr 17 09:27:46 2013
@@ -118,7 +118,7 @@ public class Revision {
         int idx = rev.indexOf('-');
         int c = 0;
         if (idx > 8) {
-            t = rev.substring(9, 11);
+            t = rev.substring(8, 11);
             c = Integer.parseInt(t, 16);
         }
         t = rev.substring(idx + 1);

Modified: jackrabbit/oak/trunk/oak-mongomk/src/test/java/org/apache/jackrabbit/mongomk/SimpleTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mongomk/src/test/java/org/apache/jackrabbit/mongomk/SimpleTest.java?rev=1468812&r1=1468811&r2=1468812&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mongomk/src/test/java/org/apache/jackrabbit/mongomk/SimpleTest.java
(original)
+++ jackrabbit/oak/trunk/oak-mongomk/src/test/java/org/apache/jackrabbit/mongomk/SimpleTest.java
Wed Apr 17 09:27:46 2013
@@ -70,7 +70,7 @@ public class SimpleTest {
     
     @Test
     public void revision() {
-        for (int i = 0; i < 100; i++) {
+        for (int i = 0; i < 1000; i++) {
             Revision r = Revision.newRevision(i);
             // System.out.println(r);
             Revision r2 = Revision.fromString(r.toString());



Mime
View raw message