jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r638305 - /jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/integration/random/operation/RemoveVersion.java
Date Tue, 18 Mar 2008 10:18:51 GMT
Author: mreutegg
Date: Tue Mar 18 03:18:45 2008
New Revision: 638305

URL: http://svn.apache.org/viewvc?rev=638305&view=rev
Log:
JCR-1475: Inconsistency when version with a label is removed

Modified:
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/integration/random/operation/RemoveVersion.java

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/integration/random/operation/RemoveVersion.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/integration/random/operation/RemoveVersion.java?rev=638305&r1=638304&r2=638305&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/integration/random/operation/RemoveVersion.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/integration/random/operation/RemoveVersion.java
Tue Mar 18 03:18:45 2008
@@ -38,8 +38,7 @@
     public NodeIterator execute() throws Exception {
         Node n = getNode();
         Version v = getRandomVersion(true);
-        // TODO: for now only remove version without labels, see: JCR-1475
-        if (v != null && v.getContainingHistory().getVersionLabels(v).length == 0)
{
+        if (v != null) {
             log.info(n.getPath() + ":" + v.getName());
             n.getVersionHistory().removeVersion(v.getName());
         }



Mime
View raw message