Examples of parseRevisionNumber()


Examples of com.intellij.openapi.vcs.AbstractVcs.parseRevisionNumber()

    try
    {
      VcsRevisionNumber vcsRevisionNumber;
      if (fileScope.getVcsBeforeRev() != null)
      {
        vcsRevisionNumber = vcs.parseRevisionNumber(fileScope.getVcsBeforeRev());

        // Strict Before
        if ((vcsRevisionNumber != null) && rev.compareTo(vcsRevisionNumber) <= 0)
        {
          return false;
View Full Code Here

Examples of com.intellij.openapi.vcs.AbstractVcs.parseRevisionNumber()

      if (fileScope.getVcsAfterRev() == null)
      {
        return true;
      }
        vcsRevisionNumber = vcs.parseRevisionNumber(fileScope.getVcsAfterRev(), new FilePathImpl(vFile));
        return (vcsRevisionNumber == null) || rev.compareTo(vcsRevisionNumber) > 0;
    }
    catch (Exception ignored)
    {
      if (LOGGER.isDebugEnabled())
View Full Code Here

Examples of com.intellij.openapi.vcs.AbstractVcs.parseRevisionNumber()

    VcsRevisionNumber revision;
    if (review.getFileScope().getVcsAfterRev() != null)
    {
      try
      {
        revision = vcs.parseRevisionNumber(review.getFileScope().getVcsAfterRev());
      }
      catch (VcsException ex)
      {
        LOGGER.error("Failed to parse VCS revision: " + review.getFileScope().getVcsAfterRev());
        return;
View Full Code Here

Examples of com.intellij.openapi.vcs.AbstractVcs.parseRevisionNumber()

      assert vcs != null;

      VcsRevisionNumber vcsRevisionNumber;
      try
      {
        vcsRevisionNumber = vcs.parseRevisionNumber(rev);
      }
      catch (VcsException e)
      {
        throw new RevuFriendlyException("Failed to parse VCS revision number: " + rev,
          RevuBundle.message("friendlyError.failedToFetchVcsFile.invalidRevision.details.text",
View Full Code Here

Examples of com.intellij.openapi.vcs.AbstractVcs.parseRevisionNumber()

    }

    try
    {
      if ((fileScope.getVcsBeforeRev() != null)
        && (rev.compareTo(vcs.parseRevisionNumber(fileScope.getVcsBeforeRev())) < 0))
      {
        return false;
      }

      return ((fileScope.getVcsAfterRev() == null)
View Full Code Here

Examples of com.intellij.openapi.vcs.AbstractVcs.parseRevisionNumber()

      {
        return false;
      }

      return ((fileScope.getVcsAfterRev() == null)
        || (rev.compareTo(vcs.parseRevisionNumber(fileScope.getVcsAfterRev())) >= 0));
    }
    catch (Exception ignored)
    {
      if (LOGGER.isDebugEnabled())
      {
View Full Code Here

Examples of com.intellij.openapi.vcs.AbstractVcs.parseRevisionNumber()

    Review review = RevuUtils.getReviewingReview(project);

    VcsRevisionNumber revision;
    if (review.getFileScope().getVcsAfterRev() != null)
    {
      revision = vcs.parseRevisionNumber(review.getFileScope().getVcsAfterRev());
    }
    else
    {
      ItemLatestState itemLatestState = vcs.getDiffProvider().getLastRevision(vFile);
      if (itemLatestState == null)
View Full Code Here

Examples of com.intellij.openapi.vcs.AbstractVcs.parseRevisionNumber()

      }

      AbstractVcs vcs = VcsUtil.getVcsFor(project, vFile);
      assert vcs != null;

      VcsRevisionNumber vcsRevisionNumber = vcs.parseRevisionNumber(rev);
      if (vcsRevisionNumber == null)
      {
        throw new RevuFriendlyException("Failed to parse VCS revision number: " + rev,
          RevuBundle.message("friendlyError.failedToFetchVcsFile.invalidRevision.details.text",
          vFile.getPath(), rev));
View Full Code Here

Examples of com.intellij.openapi.vcs.AbstractVcs.parseRevisionNumber()

      // @TODO handle case where projet has several VCS roots
      // Here, I use the first VCS connection
      AbstractVcs vcs = vcss[0];
      if (ckVcsAfterRev.isSelected())
      {
        updateError(tfVcsAfterRev, vcs.parseRevisionNumber(tfVcsAfterRev.getText()) == null,
          RevuBundle.message("projectSettings.review.scope.invalidRev.text"));
      }

      if (ckVcsBeforeRev.isSelected())
      {
View Full Code Here

Examples of com.intellij.openapi.vcs.AbstractVcs.parseRevisionNumber()

          RevuBundle.message("projectSettings.review.scope.invalidRev.text"));
      }

      if (ckVcsBeforeRev.isSelected())
      {
        updateError(tfVcsBeforeRev, vcs.parseRevisionNumber(tfVcsBeforeRev.getText()) == null,
          RevuBundle.message("projectSettings.review.scope.invalidRev.text"));
      }
    }

    if (scopeEditorPanel.getCurrentScope() != null)
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.