Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-45

Add support for branching and merging of private copies to MicroKernel

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.3
    • mk
    • None

    Description

      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:

      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); } 
      

      [1] http://markmail.org/message/jbbut6vzvmmjqonr

      Attachments

        1. OAK-45__OOME.patch
          0.9 kB
          Michael Dürig

        Activity

          People

            stefan@jira Stefan Guggisberg
            mduerig Michael Dürig
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: