jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r1327553 - /jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/model/CommitBuilder.java
Date Wed, 18 Apr 2012 15:56:53 GMT
Author: stefan
Date: Wed Apr 18 15:56:53 2012
New Revision: 1327553

URL: http://svn.apache.org/viewvc?rev=1327553&view=rev
Log:
 OAK-45: Add support for branching and merging of private copies to MicroKernel (WIP)

Modified:
    jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/model/CommitBuilder.java

Modified: jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/model/CommitBuilder.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/model/CommitBuilder.java?rev=1327553&r1=1327552&r2=1327553&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/model/CommitBuilder.java
(original)
+++ jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/model/CommitBuilder.java
Wed Apr 18 15:56:53 2012
@@ -97,6 +97,10 @@ public class CommitBuilder {
         }
 
         StoredCommit baseCommit = store.getCommit(baseRevId);
+        if (createBranch && baseCommit.getBranchRootId() != null) {
+            throw new Exception("cannot branch off a private branch");
+        }
+
         boolean privateCommit = createBranch || baseCommit.getBranchRootId() != null;
 
 



Mime
View raw message