Examples of release()


Examples of org.eclipse.jgit.lib.ObjectInserter.release()

      parser.setObjectChecking(transport.isCheckFetchedObjects());
      parser.setLockMessage(lockMessage);
      packLock = parser.parse(monitor);
      ins.flush();
    } finally {
      ins.release();
    }
  }

  private static class CancelledException extends Exception {
    private static final long serialVersionUID = 1L;
View Full Code Here

Examples of org.eclipse.jgit.lib.ObjectReader.release()

          CanonicalTreeParser p = new CanonicalTreeParser();
          ObjectReader reader = repo.newObjectReader();
          try {
            p.reset(reader, head);
          } finally {
            reader.release();
          }
          oldTree = p;
        }
        newTree = new DirCacheIterator(repo.readDirCache());
      } else {
View Full Code Here

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

          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

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

          ow.markStart(ow.parseAny(want));
        for (final Ref ref : transport.local.getAllRefs().values())
          ow.markUninteresting(ow.parseAny(ref.getObjectId()));
        ow.checkConnectivity();
      } finally {
        ow.release();
      }
      return true;
    } catch (MissingObjectException e) {
      return false;
    } catch (IOException e) {
View Full Code Here

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

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

      writer.setReuseValidatingObjects(false);
      writer.setDeltaBaseAsOffset(capableOfsDelta);
      writer.preparePack(monitor, newObjects, remoteObjects);
      writer.writePack(monitor, monitor, out);
    } finally {
      writer.release();
    }
    packTransferTime = writer.getStatistics().getTimeWriting();
  }

  private void readStatusReport(final Map<String, RemoteRefUpdate> refUpdates)
View Full Code Here

Examples of org.eclipse.jgit.submodule.SubmoduleWalk.release()

      generator = new InMemorySubmoduleWalk(repository, submodulesConfig);
      try {
        DirCache index = repository.readDirCache();
        generator.setTree(new DirCacheIterator(index));
      } catch (IOException e) {
        generator.release();
        throw e;
      }
    } else {
      generator = SubmoduleWalk.forIndex(repository);
    }
View Full Code Here

Examples of org.eclipse.jgit.treewalk.NameConflictTreeWalk.release()

          return true;
        }
      }
      return false;
    } finally {
      tw.release();
    }
  }

  private boolean isModified_IndexTree(String path, ObjectId iId,
      FileMode iMode, ObjectId tId, FileMode tMode, ObjectId rootTree)
View Full Code Here

Examples of org.eclipse.jgit.treewalk.TreeWalk.release()

            }
          });
        }
        editor.commit();
      } finally {
        startWalk.release();
        r.release();
      }
    } finally {
      dc.unlock();
      revWalk.release();
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.editors.palette.impl.PaletteItemManager.release()

        PaletteItemManager manager = (PaletteItemManager) imanager;
//        ResourcesPlugin.getWorkspace().removeResourceChangeListener(
//            _resourceChangeListener);
        manager.removeEntryChangeListener(_paletteModelListener);       
//        PaletteItemManager.clearPaletteItemManager();
        manager.release(((DesignerPaletteRoot)root).getPaletteContext());
      }
    }
    super.unhookControl();
  }
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.