Package org.eclipse.jgit.errors

Examples of org.eclipse.jgit.errors.MissingBundlePrerequisiteException


              .format(JGitText.get().cannotReadCommit, p.name()),
              err);
        }
      }
      if (!missing.isEmpty())
        throw new MissingBundlePrerequisiteException(transport.uri,
            missing);

      for (final Ref r : transport.local.getAllRefs().values()) {
        try {
          rw.markStart(rw.parseCommit(r.getObjectId()));
        } catch (IOException readError) {
          // If we cannot read the value of the ref skip it.
        }
      }

      int remaining = commits.size();
      try {
        RevCommit c;
        while ((c = rw.next()) != null) {
          if (c.has(PREREQ)) {
            c.add(SEEN);
            if (--remaining == 0)
              break;
          }
        }
      } catch (IOException err) {
        throw new TransportException(transport.uri,
            JGitText.get().cannotReadObject, err);
      }

      if (remaining > 0) {
        for (final RevObject o : commits) {
          if (!o.has(SEEN))
            missing.put(o, prereqs.get(o));
        }
        throw new MissingBundlePrerequisiteException(transport.uri,
            missing);
      }
    } finally {
      rw.release();
    }
View Full Code Here


              .format(JGitText.get().cannotReadCommit, p.name()),
              err);
        }
      }
      if (!missing.isEmpty())
        throw new MissingBundlePrerequisiteException(transport.uri,
            missing);

      Map<String, Ref> localRefs;
      try {
        localRefs = transport.local.getRefDatabase().getRefs(ALL);
      } catch (IOException e) {
        throw new TransportException(transport.uri, e.getMessage(), e);
      }
      for (final Ref r : localRefs.values()) {
        try {
          rw.markStart(rw.parseCommit(r.getObjectId()));
        } catch (IOException readError) {
          // If we cannot read the value of the ref skip it.
        }
      }

      int remaining = commits.size();
      try {
        RevCommit c;
        while ((c = rw.next()) != null) {
          if (c.has(PREREQ)) {
            c.add(SEEN);
            if (--remaining == 0)
              break;
          }
        }
      } catch (IOException err) {
        throw new TransportException(transport.uri,
            JGitText.get().cannotReadObject, err);
      }

      if (remaining > 0) {
        for (final RevObject o : commits) {
          if (!o.has(SEEN))
            missing.put(o, prereqs.get(o));
        }
        throw new MissingBundlePrerequisiteException(transport.uri,
            missing);
      }
    } finally {
      rw.release();
    }
View Full Code Here

              .format(JGitText.get().cannotReadCommit, p.name()),
              err);
        }
      }
      if (!missing.isEmpty())
        throw new MissingBundlePrerequisiteException(transport.uri,
            missing);

      for (final Ref r : transport.local.getAllRefs().values()) {
        try {
          rw.markStart(rw.parseCommit(r.getObjectId()));
        } catch (IOException readError) {
          // If we cannot read the value of the ref skip it.
        }
      }

      int remaining = commits.size();
      try {
        RevCommit c;
        while ((c = rw.next()) != null) {
          if (c.has(PREREQ)) {
            c.add(SEEN);
            if (--remaining == 0)
              break;
          }
        }
      } catch (IOException err) {
        throw new TransportException(transport.uri,
            JGitText.get().cannotReadObject, err);
      }

      if (remaining > 0) {
        for (final RevObject o : commits) {
          if (!o.has(SEEN))
            missing.put(o, prereqs.get(o));
        }
        throw new MissingBundlePrerequisiteException(transport.uri,
            missing);
      }
    } finally {
      rw.release();
    }
View Full Code Here

              .format(JGitText.get().cannotReadCommit, p.name()),
              err);
        }
      }
      if (!missing.isEmpty())
        throw new MissingBundlePrerequisiteException(transport.uri,
            missing);

      for (final Ref r : transport.local.getAllRefs().values()) {
        try {
          rw.markStart(rw.parseCommit(r.getObjectId()));
        } catch (IOException readError) {
          // If we cannot read the value of the ref skip it.
        }
      }

      int remaining = commits.size();
      try {
        RevCommit c;
        while ((c = rw.next()) != null) {
          if (c.has(PREREQ)) {
            c.add(SEEN);
            if (--remaining == 0)
              break;
          }
        }
      } catch (IOException err) {
        throw new TransportException(transport.uri,
            JGitText.get().cannotReadObject, err);
      }

      if (remaining > 0) {
        for (final RevObject o : commits) {
          if (!o.has(SEEN))
            missing.put(o, prereqs.get(o));
        }
        throw new MissingBundlePrerequisiteException(transport.uri,
            missing);
      }
    } finally {
      rw.release();
    }
View Full Code Here

              .format(JGitText.get().cannotReadCommit, p.name()),
              err);
        }
      }
      if (!missing.isEmpty())
        throw new MissingBundlePrerequisiteException(transport.uri,
            missing);

      for (final Ref r : transport.local.getAllRefs().values()) {
        try {
          rw.markStart(rw.parseCommit(r.getObjectId()));
        } catch (IOException readError) {
          // If we cannot read the value of the ref skip it.
        }
      }

      int remaining = commits.size();
      try {
        RevCommit c;
        while ((c = rw.next()) != null) {
          if (c.has(PREREQ)) {
            c.add(SEEN);
            if (--remaining == 0)
              break;
          }
        }
      } catch (IOException err) {
        throw new TransportException(transport.uri,
            JGitText.get().cannotReadObject, err);
      }

      if (remaining > 0) {
        for (final RevObject o : commits) {
          if (!o.has(SEEN))
            missing.put(o, prereqs.get(o));
        }
        throw new MissingBundlePrerequisiteException(transport.uri,
            missing);
      }
    } finally {
      rw.release();
    }
View Full Code Here

              .format(JGitText.get().cannotReadCommit, p.name()),
              err);
        }
      }
      if (!missing.isEmpty())
        throw new MissingBundlePrerequisiteException(transport.uri,
            missing);

      for (final Ref r : transport.local.getAllRefs().values()) {
        try {
          rw.markStart(rw.parseCommit(r.getObjectId()));
        } catch (IOException readError) {
          // If we cannot read the value of the ref skip it.
        }
      }

      int remaining = commits.size();
      try {
        RevCommit c;
        while ((c = rw.next()) != null) {
          if (c.has(PREREQ)) {
            c.add(SEEN);
            if (--remaining == 0)
              break;
          }
        }
      } catch (IOException err) {
        throw new TransportException(transport.uri,
            JGitText.get().cannotReadObject, err);
      }

      if (remaining > 0) {
        for (final RevObject o : commits) {
          if (!o.has(SEEN))
            missing.put(o, prereqs.get(o));
        }
        throw new MissingBundlePrerequisiteException(transport.uri,
            missing);
      }
    } finally {
      rw.release();
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.errors.MissingBundlePrerequisiteException

Copyright © 2018 www.massapicom. 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.