Package org.eclipse.jgit.revwalk

Examples of org.eclipse.jgit.revwalk.RevWalk.dispose()


            }

            for (RevCommit rev : rw) {
                list.add(rev);
            }
            rw.dispose();
        } catch (IOException e) {
            e.printStackTrace();
        }

        return list;
View Full Code Here


          throw new JGitInternalException(MessageFormat.format(
              JGitText.get().cannotReadCommit, entry.getNewId()),
              e);
        }
    } finally {
      walk.dispose();
    }
    return stashCommits;
  }
}
View Full Code Here

          result.add(new PreviousCommit(previousCommit, previousPath));
        }
        previousCommit = rw.next();
      }
    } finally {
      rw.dispose();
    }
    return result;
  }

  // keep track of the path of an ancestor (for following renames)
View Full Code Here

                repoRelativePath, headTree);
            if (projectInRepo != null) {
              // the .project file is tracked by this repo
              treeItem.setChecked(true);
            }
            revWalk.dispose();
          }
        }
        repo.close();
      } catch (IOException e1) {
        Activator
View Full Code Here

      } catch (IOException e) {
        throw new InvocationTargetException(e);
      }
    } finally {
      if (rw != null)
        rw.dispose();
      monitor.done();
    }
  }

  @Override
View Full Code Here

    RevWalk revWalk = new RevWalk(db);
    try {
      revWalk.setRetainBody(false);
      return RevWalkUtils.findBranchesReachableFrom(commit, revWalk, allRefs);
    } finally {
      revWalk.dispose();
    }
  }

  private String formatHeadRef(Ref ref) {
    final String name = ref.getName();
View Full Code Here

              break;
            }
        }
      }
    } finally {
      walk.dispose();
    }
  }

  /**
   * @see org.eclipse.search.ui.ISearchQuery#getLabel()
View Full Code Here

      } catch (IOException e) {
        throw new InvocationTargetException(e);
      }
    } finally {
      if (rw != null)
        rw.dispose();
      monitor.done();
    }
  }

  @Override
View Full Code Here

        remoteCommit = rw.parseCommit(change.getRemoteCommitId()
            .toObjectId());
    } catch (IOException e) {
      Activator.logError(e.getMessage(), e);
    } finally {
      rw.dispose();
    }
    if (baseCommit == null && remoteCommit != null)
      baseCommit = remoteCommit; // prevent from NPE for deleted files

    ObjectId localId = extractObjectId(change.getObjectId());
View Full Code Here

                + "> " + gitDateFormatter.formatDate(commit.getAuthorIdent())); //$NON-NLS-1$
            committer.setText(commit.getCommitterIdent().getName()
                + " <" //$NON-NLS-1$
                + commit.getCommitterIdent().getEmailAddress()
                + "> " + gitDateFormatter.formatDate(commit.getCommitterIdent())); //$NON-NLS-1$
            rw.dispose();
          }
        } catch (IOException e1) {
          setMessage(e1.getMessage(), IMessageProvider.ERROR);
          getButton(OK).setEnabled(false);
          parsedCommitish = 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.