Package org.eclipse.jgit.revwalk

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


          pckOut.writeString("ACK " + obj.name() + " common\n");
          break;
        }
      }
    } finally {
      q.release();
    }
    int missCnt = peerHas.size() - haveCnt;

    // If we don't have one of the objects but we're also willing to
    // create a pack at this point, let the client know so it stops
View Full Code Here


    } catch (MissingObjectException notFound) {
      ObjectId id = notFound.getObjectId();
      throw new PackProtocolException(MessageFormat.format(
          JGitText.get().wantNotValid, id.name()), notFound);
    } finally {
      q.release();
    }
    for (ObjectId id : reachableFrom) {
      try {
        walk.markUninteresting(walk.parseCommit(id));
      } catch (IncorrectObjectTypeException notCommit) {
View Full Code Here

          pckOut.writeString("ACK " + obj.name() + " common\n"); //$NON-NLS-1$ //$NON-NLS-2$
          break;
        }
      }
    } finally {
      q.release();
      walk.getObjectReader().setAvoidUnreachableObjects(false);
    }

    int missCnt = peerHas.size() - haveCnt;
View Full Code Here

    } catch (MissingObjectException notFound) {
      ObjectId id = notFound.getObjectId();
      throw new PackProtocolException(MessageFormat.format(
          JGitText.get().wantNotValid, id.name()), notFound);
    } finally {
      q.release();
    }
  }

  private void want(RevObject obj) {
    if (!obj.has(WANT)) {
View Full Code Here

            continue;
          throw e;
        }
      }
    } finally {
      q.release();
    }

    if (!wantTags.isEmpty()) {
      all = new ArrayList<ObjectId>(wantTags.size());
      for (RevTag tag : wantTags)
View Full Code Here

      try {
        while (q.next() != null) {
          // Just need to pop the queue item to parse the object.
        }
      } finally {
        q.release();
      }
    }

    if (walker instanceof DepthWalk.ObjectWalk) {
      DepthWalk.ObjectWalk depthWalk = (DepthWalk.ObjectWalk) walker;
View Full Code Here

          pckOut.writeString("ACK " + obj.name() + " common\n");
          break;
        }
      }
    } finally {
      q.release();
    }

    // If the client asked for non advertised object, check our policy.
    if (notAdvertisedWants != null && !notAdvertisedWants.isEmpty()) {
      switch (requestPolicy) {
View Full Code Here

            continue;
          throw e;
        }
      }
    } finally {
      q.release();
    }

    if (!wantTags.isEmpty()) {
      all = new ArrayList<ObjectId>(wantTags.size());
      for (RevTag tag : wantTags)
View Full Code Here

      try {
        while (q.next() != null) {
          // Just need to pop the queue item to parse the object.
        }
      } finally {
        q.release();
      }
    }

    if (walker instanceof DepthWalk.ObjectWalk) {
      DepthWalk.ObjectWalk depthWalk = (DepthWalk.ObjectWalk) walker;
View Full Code Here

          pckOut.writeString("ACK " + obj.name() + " common\n");
          break;
        }
      }
    } finally {
      q.release();
    }

    // If the client asked for non advertised object, check our policy.
    if (notAdvertisedWants != null && !notAdvertisedWants.isEmpty()) {
      switch (requestPolicy) {
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.