Package org.eclipse.jgit.revwalk

Examples of org.eclipse.jgit.revwalk.RevWalk.release()


    final RevWalk rw = new RevWalk(clonedRepo);
    final RevCommit commit;
    try {
      commit = rw.parseCommit(ref.getObjectId());
    } finally {
      rw.release();
    }
    return commit;
  }

  /**
 
View Full Code Here


      }
      return result;
    } catch (IOException ioe) {
      throw new JGitInternalException(ioe.getMessage(), ioe);
    } finally {
      revWalk.release();
    }
  }

  private ObjectId getStartPoint() throws AmbiguousObjectException,
      RefNotFoundException, IOException {
View Full Code Here

          MessageFormat.format(
              JGitText.get().exceptionCaughtDuringExecutionOfMergeCommand,
              e), e);
    } finally {
      if (revWalk != null)
        revWalk.release();
    }
  }

  private void updateHead(StringBuilder refLogMessage, ObjectId newHeadId,
      ObjectId oldHeadID) throws IOException,
View Full Code Here

        throw new JGitInternalException(
            MessageFormat.format(
            JGitText.get().cannotReadCommit, commitId.toString()),
            e);
      } finally {
        rw.release();
      }

      if (!filepaths.isEmpty()) {
        // reset [commit] -- paths
        resetIndexForPaths(commit);
View Full Code Here

                  .format(JGitText.get().updatingRefFailed,
                      Constants.HEAD,
                      commitId.toString(), rc));
            }
          } finally {
            revWalk.release();
          }
        } finally {
          odi.release();
        }
      } finally {
View Full Code Here

        startWalk.release();
        r.release();
      }
    } finally {
      dc.unlock();
      revWalk.release();
    }
    return this;
  }

  private ObjectId getStartPoint() throws AmbiguousObjectException,
View Full Code Here

              u.getLocalName(), err.getMessage()), err);
        }
      }
      monitor.endTask();
    } finally {
      walk.release();
    }

    if (!fetchHeadUpdates.isEmpty()) {
      try {
        updateFETCH_HEAD(result);
View Full Code Here

      throws AmbiguousObjectException, IOException {
    RevWalk rw = new RevWalk(this);
    try {
      return resolve(rw, revstr);
    } finally {
      rw.release();
    }
  }

  private ObjectId resolve(final RevWalk rw, final String revstr) throws IOException {
    char[] rev = revstr.toCharArray();
View Full Code Here

      throw new JGitInternalException(
          MessageFormat.format(
              JGitText.get().exceptionCaughtDuringExecutionOfCherryPickCommand,
              e), e);
    } finally {
      revWalk.release();
    }
    return new CherryPickResult(newHead, cherryPickedRefs);
  }

  /**
 
View Full Code Here

      throw new JGitInternalException(
          MessageFormat.format(
                  JGitText.get().exceptionCaughtDuringExecutionOfRevertCommand,
              e), e);
    } finally {
      revWalk.release();
    }
    return newHead;
  }

  /**
 
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.