Examples of checkout()


Examples of org.eclipse.jgit.dircache.DirCacheCheckout.checkout()

          JGitText.get().cannotRebaseWithoutCurrentHead);
    DirCache dc = repo.lockDirCache();
    try {
      DirCacheCheckout dco = new DirCacheCheckout(repo, dc, headTree);
      dco.setFailOnConflict(false);
      boolean needsDeleteFiles = dco.checkout();
      if (needsDeleteFiles) {
        List<String> fileList = dco.getToBeDeleted();
        for (String filePath : fileList) {
          File fileToDelete = new File(repo.getWorkTree(), filePath);
          if (fileToDelete.exists())
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCacheCheckout.checkout()

      } else {
        dco = new DirCacheCheckout(repo, repo.lockDirCache(),
            commit.getTree());
      }
      dco.setFailOnConflict(false);
      dco.checkout();
      walk.release();
    } finally {
      monitor.endTask();
    }
    try {
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCacheCheckout.checkout()

    try {
      RevCommit head = walk.parseCommit(repo.resolve(Constants.HEAD));
      DirCacheCheckout dco = new DirCacheCheckout(repo, head.getTree(),
          repo.lockDirCache(), commit.getTree());
      dco.setFailOnConflict(true);
      dco.checkout();
      // update the HEAD
      RefUpdate refUpdate = repo.updateRef(Constants.HEAD, true);
      refUpdate.setExpectedOldObjectId(head);
      refUpdate.setNewObjectId(commit);
      Result res = refUpdate.forceUpdate();
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCacheCheckout.checkout()

         {
            DirCacheCheckout dco = new DirCacheCheckout(repo,
                     headCommit.getTree(), repo.lockDirCache(),
                     merger.getResultTreeId());
            dco.setFailOnConflict(true);
            dco.checkout();

            cherryPickedRefs.add(src);
         }
         else
         {
View Full Code Here

Examples of org.eclipse.jgit.lib.WorkDirCheckout.checkout()

      WorkDirCheckout workDirCheckout = new WorkDirCheckout(db,
          workDir, db.mapCommit(Constants.HEAD).getTree(),
          db.getIndex(), db.mapCommit(branchName).getTree());
      workDirCheckout.setFailOnConflict(true);
      try {
        workDirCheckout.checkout();
      } catch (CheckoutConflictException e) {
        throw new JGitInternalException(
            "Couldn't check out because of conflicts", e);
      }
    }
View Full Code Here

Examples of org.exist.versioning.svn.WorkingCopy.checkout()

        }
        //wcDir.mkdirs();
       
        long rev = -1;
      try {
        rev = wc.checkout(SVNURL.parseURIEncoded(uri), SVNRevision.HEAD, wcDir, true);
    } catch (SVNException svne) {
      svne.printStackTrace();
     
          LOG.debug(svne);
View Full Code Here

Examples of org.exoplatform.services.jcr.cluster.JCRWebdavConnection.checkOut()

      conn.addNode(nodeName, "v1".getBytes());
     
      conn.addVersionControl(nodeName);
     
      conn.checkIn(nodeName);
      conn.checkOut(nodeName);
     
      // check
      for (JCRWebdavConnection connection : getConnections())
      {
         HTTPResponse response = connection.getNode(nodeName);
View Full Code Here

Examples of org.exoplatform.services.jcr.core.ExtendedNode.checkout()

    root.save();

    // ver.1
    node.checkin();
    final String v1UUID = node.getBaseVersion().getUUID();
    node.checkout();

    final String propName = "prop1";
    final InternalQName propQName = new InternalQName("", propName);

    node.setProperty(propName, "prop #1");
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.NodeImpl.checkout()

      testNode.removePermission(IdentityConstants.ANY);
      session.save();

      //let us make node version
      testNode.checkin();
      testNode.checkout();

      session.save();

      //now let us try to grant all permissions for any user
      String request =
View Full Code Here

Examples of org.jahia.services.content.JCRNodeWrapper.checkout()

        try {
            JCRSessionWrapper sessionWrapper = retrieveCurrentSession();
            JCRNodeWrapper nodeWrapper = sessionWrapper.getNode(nodepath);
            final GWTJahiaNode node = navigation.getGWTJahiaNode(nodeWrapper);
            if (tryToLockNode && !nodeWrapper.isLocked() && nodeWrapper.hasPermission(Privilege.JCR_LOCK_MANAGEMENT)) {
                nodeWrapper.checkout();
                nodeWrapper.lockAndStoreToken("engine");
            }

            dumpLocks(nodeWrapper);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.