/** {@inheritDoc} */ public List<String> showRevision(ObjectId from, ObjectId to) throws GitException, InterruptedException { return proxy.showRevision(from, to); }
/** {@inheritDoc} */ public List<String> showRevision(ObjectId r) throws GitException, InterruptedException { return proxy.showRevision(r); }
/** {@inheritDoc} */ public List<String> showRevision(ObjectId from, ObjectId to, Boolean useRawOutput) throws GitException, InterruptedException { return proxy.showRevision(from, to, useRawOutput); }
if (buildData != null && buildData.lastBuild != null) { if (getExtensions().get(PathRestriction.class) != null) { revShow = git.showRevision(buildData.lastBuild.revision.getSha1(), r.getSha1()); } else { revShow = git.showRevision(buildData.lastBuild.revision.getSha1(), r.getSha1(), false); revShow = git.showRevision(r.getSha1());
static List<Change> getChangesFromGit(GitClient cli, FilePath workspace, String relativeTargetDirectory, String remoteDebian, PersonIdent account) throws InterruptedException { String changelogPath = remoteDebian + "/changelog"; LinkedList<Change> changesSinceLastChangelogModification = new LinkedList<Change>(); LinkedList<Change> changesSinceLastChangelogModificationByPlugin = new LinkedList<Change>(); boolean firstChangelogModificationFound = false; for (ObjectId rev : cli.revListAll()) { List<String> lines = cli.showRevision(rev); GitChangeSet changeSet = new GitChangeSet(lines, true); String email = getAuthorEmailFromGitRevision(lines); Change change = new Change(changeSet.getAuthorName(), changeSet.getMsg()); for (GitChangeSet.Path path : changeSet.getPaths()) { String filePath = workspace.child(relativeTargetDirectory).child(path.getPath()).getRemote(); if (filePath.equals(changelogPath)) { if (changeSet.getAuthorName().equals(account.getName()) & email.equals(account.getEmailAddress())) { return changesSinceLastChangelogModificationByPlugin; } else { firstChangelogModificationFound = true; } } } if (!firstChangelogModificationFound) { changesSinceLastChangelogModification.addFirst(change); } changesSinceLastChangelogModificationByPlugin.addFirst(change); } return changesSinceLastChangelogModification; }