jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r314891 - /incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/BatchedItemOperations.java
Date Wed, 12 Oct 2005 13:19:50 GMT
Author: stefan
Date: Wed Oct 12 06:19:48 2005
New Revision: 314891

URL: http://svn.apache.org/viewcvs?rev=314891&view=rev
Log:
JCR-238 workspace.copy causes 2 nodes in the same workspace to have the same version history

erm... :)

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/BatchedItemOperations.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/BatchedItemOperations.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/BatchedItemOperations.java?rev=314891&r1=314890&r2=314891&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/BatchedItemOperations.java
(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/BatchedItemOperations.java
Wed Oct 12 06:19:48 2005
@@ -1,6 +1,6 @@
 /*
  * Copyright 2004-2005 The Apache Software Foundation or its licensors,
-  *                     as applicable.
+ *                     as applicable.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -1726,25 +1726,25 @@
                      * adjusted accordingly.
                      */
                     // jcr:versionHistory
-                    if (!propName.equals(QName.JCR_VERSIONHISTORY)) {
+                    if (propName.equals(QName.JCR_VERSIONHISTORY)) {
                         VersionHistory vh = getOrCreateVersionHistory(newState);
                         newChildState.setValues(new InternalValue[]{InternalValue.create(new
UUID(vh.getUUID()))});
                     }
 
                     // jcr:baseVersion
-                    if (!propName.equals(QName.JCR_BASEVERSION)) {
+                    if (propName.equals(QName.JCR_BASEVERSION)) {
                         VersionHistory vh = getOrCreateVersionHistory(newState);
                         newChildState.setValues(new InternalValue[]{InternalValue.create(new
UUID(vh.getRootVersion().getUUID()))});
                     }
 
                     // jcr:predecessors
-                    if (!propName.equals(QName.JCR_PREDECESSORS)) {
+                    if (propName.equals(QName.JCR_PREDECESSORS)) {
                         VersionHistory vh = getOrCreateVersionHistory(newState);
                         newChildState.setValues(new InternalValue[]{InternalValue.create(new
UUID(vh.getRootVersion().getUUID()))});
                     }
 
                     // jcr:isCheckedOut
-                    if (!propName.equals(QName.JCR_ISCHECKEDOUT)) {
+                    if (propName.equals(QName.JCR_ISCHECKEDOUT)) {
                         newChildState.setValues(new InternalValue[]{InternalValue.create(true)});
                     }
                 }



Mime
View raw message