Package org.eclipse.jgit.lib

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


      parser.setLockMessage(lockMsg);
      parser.setMaxObjectSizeLimit(maxObjectSizeLimit);
      packLock = parser.parse(receiving, resolving);
      ins.flush();
    } finally {
      ins.release();
    }

    if (timeoutIn != null)
      timeoutIn.setTimeout(timeout * 1000);
  }
 
View Full Code Here


        inserter.flush();

        updateStashRef(commitId, builder.getAuthor(),
            builder.getMessage());
      } finally {
        inserter.release();
        cache.unlock();
      }

      // Hard reset to HEAD
      new ResetCommand(repo).setMode(ResetType.HARD).call();
View Full Code Here

            throw new JGitInternalException(MessageFormat.format(
                JGitText.get().updatingRefFailed,
                Constants.HEAD, commitId.toString(), rc));
          }
        } finally {
          odi.release();
        }
      } finally {
        index.unlock();
      }
    } catch (UnmergedPathException e) {
View Full Code Here

        parser.setObjectChecking(transport.isCheckFetchedObjects());
        parser.setLockMessage(lockMessage);
        packLock = parser.parse(NullProgressMonitor.INSTANCE);
        ins.flush();
      } finally {
        ins.release();
      }
    } catch (IOException err) {
      close();
      throw new TransportException(transport.uri, err.getMessage(), err);
    } catch (RuntimeException err) {
View Full Code Here

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

  /**
   * Notification event delivered just before the pack is received from the
View Full Code Here

      setCallable(false);
    } catch (IOException e) {
      throw new JGitInternalException(
          JGitText.get().exceptionCaughtDuringExecutionOfAddCommand, e);
    } finally {
      inserter.release();
      if (dc != null)
        dc.unlock();
    }

    return dc;
View Full Code Here

          }
        } finally {
          revWalk.release();
        }
      } finally {
        odi.release();
      }
    } catch (Throwable t) {
      t.printStackTrace();
    }
    return success;
View Full Code Here

          }
        } finally {
          revWalk.release();
        }
      } finally {
        odi.release();
      }
      System.out.println("gh-pages updated.");
    } catch (Throwable t) {
      t.printStackTrace();
    }
View Full Code Here

      }

      // finish temporary in-core index used for this commit
      dcBuilder.finish();
    } finally {
      inserter.release();
    }
    return inCoreIndex;
  }

  private static List<File> listFiles(File folder) {
View Full Code Here

                    }
                } else {
                    hadEffecitiveCommit = false;
                }
            } finally {
                odi.release();
            }
        } catch ( final Throwable t ) {
            throw new RuntimeException( t );
        }
        return hadEffecitiveCommit;
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.