Examples of computeName()


Examples of org.eclipse.jgit.internal.storage.pack.PackWriter.computeName()

      pw.preparePack(pm, want, have);
      if (pw.getObjectCount() == 0)
        return null;

      // create temporary files
      String id = pw.computeName().getName();
      File packdir = new File(repo.getObjectsDirectory(), "pack"); //$NON-NLS-1$
      tmpPack = File.createTempFile("gc_", ".pack_tmp", packdir); //$NON-NLS-1$ //$NON-NLS-2$
      final String tmpBase = tmpPack.getName()
          .substring(0, tmpPack.getName().lastIndexOf('.'));
      File tmpIdx = new File(packdir, tmpBase + ".idx_tmp"); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.jgit.internal.storage.pack.PackWriter.computeName()

      packNames = new LinkedHashMap<String, String>();
      for (final String n : dest.getPackNames())
        packNames.put(n, n);

      final String base = "pack-" + writer.computeName().name(); //$NON-NLS-1$
      final String packName = base + ".pack"; //$NON-NLS-1$
      pathPack = "pack/" + packName; //$NON-NLS-1$
      pathIdx = "pack/" + base + ".idx"; //$NON-NLS-1$ //$NON-NLS-2$

      if (packNames.remove(packName) != null) {
View Full Code Here

Examples of org.eclipse.jgit.internal.storage.pack.PackWriter.computeName()

    final PackWriter pw = new PackWriter(src);
    for (final RevObject o : list) {
      pw.addObject(o);
    }

    final ObjectId name = pw.computeName();
    final File packFile = fullPackFileName(name, ".pack");
    final File idxFile = fullPackFileName(name, ".idx");
    final File[] files = new File[] { packFile, idxFile };
    write(files, pw);
    pw.release();
View Full Code Here

Examples of org.eclipse.jgit.internal.storage.pack.PackWriter.computeName()

        Set<ObjectId> all = new HashSet<ObjectId>();
        for (Ref r : db.getAllRefs().values())
          all.add(r.getObjectId());
        pw.preparePack(m, all, Collections.<ObjectId> emptySet());

        final ObjectId name = pw.computeName();
        OutputStream out;

        pack = nameFor(odb, name, ".pack");
        out = new SafeBufferedOutputStream(new FileOutputStream(pack));
        try {
View Full Code Here

Examples of org.eclipse.jgit.internal.storage.pack.PackWriter.computeName()

    pw.setReuseDeltaCommits(false);
    for (ObjectIdSet idx : excludeObjects)
      pw.excludeObjects(idx);
    pw.preparePack(NullProgressMonitor.INSTANCE, want,
        Collections.<ObjectId> emptySet());
    String id = pw.computeName().getName();
    File packdir = new File(repo.getObjectsDirectory(), "pack");
    File packFile = new File(packdir, "pack-" + id + ".pack");
    FileOutputStream packOS = new FileOutputStream(packFile);
    pw.writePack(NullProgressMonitor.INSTANCE,
        NullProgressMonitor.INSTANCE, packOS);
View Full Code Here

Examples of org.eclipse.jgit.internal.storage.pack.PackWriter.computeName()

      pw.preparePack(pm, want, have);
      if (pw.getObjectCount() == 0)
        return null;

      // create temporary files
      String id = pw.computeName().getName();
      File packdir = new File(repo.getObjectsDirectory(), "pack"); //$NON-NLS-1$
      tmpPack = File.createTempFile("gc_", ".pack_tmp", packdir); //$NON-NLS-1$ //$NON-NLS-2$
      final String tmpBase = tmpPack.getName()
          .substring(0, tmpPack.getName().lastIndexOf('.'));
      File tmpIdx = new File(packdir, tmpBase + ".idx_tmp"); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackWriter.computeName()

      packNames = new LinkedHashMap<String, String>();
      for (final String n : dest.getPackNames())
        packNames.put(n, n);

      final String base = "pack-" + writer.computeName().name();
      final String packName = base + ".pack";
      pathPack = "pack/" + packName;
      pathIdx = "pack/" + base + ".idx";

      if (packNames.remove(packName) != null) {
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackWriter.computeName()

      packNames = new LinkedHashMap<String, String>();
      for (final String n : dest.getPackNames())
        packNames.put(n, n);

      final String base = "pack-" + writer.computeName().name();
      final String packName = base + ".pack";
      pathPack = "pack/" + packName;
      pathIdx = "pack/" + base + ".idx";

      if (packNames.remove(packName) != null) {
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackWriter.computeName()

      pw.preparePack(pm, want, have);
      if (pw.getObjectCount() == 0)
        return null;

      // create temporary files
      String id = pw.computeName().getName();
      File packdir = new File(repo.getObjectsDirectory(), "pack");
      tmpPack = File.createTempFile("gc_", ".pack_tmp", packdir);
      tmpIdx = new File(packdir, tmpPack.getName().substring(0,
          tmpPack.getName().lastIndexOf('.'))
          + ".idx_tmp");
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackWriter.computeName()

      packNames = new LinkedHashMap<String, String>();
      for (final String n : dest.getPackNames())
        packNames.put(n, n);

      final String base = "pack-" + writer.computeName().name();
      final String packName = base + ".pack";
      pathPack = "pack/" + packName;
      pathIdx = "pack/" + base + ".idx";

      if (packNames.remove(packName) != 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.