jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-45) Add support for branching and merging of private copies to MicroKernel
Date Tue, 03 Apr 2012 12:12:23 GMT

    [ https://issues.apache.org/jira/browse/OAK-45?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13245248#comment-13245248
] 

Thomas Mueller commented on OAK-45:
-----------------------------------

As also discussed on the list, I'm not sure if that would be a good idea, given it might turn
out to be impossible to support efficiently, correctly, and easily on some MicroKernel implementations.
                
> Add support for branching and merging of private copies to MicroKernel
> ----------------------------------------------------------------------
>
>                 Key: OAK-45
>                 URL: https://issues.apache.org/jira/browse/OAK-45
>             Project: Jackrabbit Oak
>          Issue Type: New Feature
>          Components: mk
>            Reporter: Michael Dürig
>
> As discussed on the dev list [1] we should add support to the Microkernel for branching
of a private working copy which can be merged back later:
> {code}
> String addLotsOfData(MicroKernel mk) { 
>     String baseRevision = mk.getHeadRevision(); 
>     String branchRevision = mk.branch(baseRevision); 
>     for (int i = 0; i < 1000000; i++) { 
>         branchRevision = mk.commit("/", "+\"node" + i + "\":{}", 
>             branchRevision, null); 
>     } 
>     return mk.merge(branchRevision, baseRevision); } 
> {code}
> [1] http://markmail.org/message/jbbut6vzvmmjqonr

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message