@Override public URL getChangeSetLink(LogEntry changeSet) throws IOException { return new URL(url, String.format("revinfo.svn?name=%s&revision=%d", repositoryInstance, Integer.valueOf(changeSet.getRevision()))); }
public URL getChangeSetLink(SubversionChangeLogSet.LogEntry changeSet) throws IOException { int revision = changeSet.getRevision(); StringBuffer link = new StringBuffer(this.getViewerUrl()) .append("?view=revision&system=") .append(this.getSystemId()).append("&revision=").append(revision); return new URL(link.toString()); }
public URL getDiffLink(SubversionChangeLogSet.Path path) throws IOException { int revision = path.getLogEntry().getRevision(); int r1 = revision - 1; int r2 = revision; StringBuffer link = getViewerUrlWithPath(path).append("&system=") .append(this.getSystemId()).append("&r1=").append(r1) .append("&r2=").append(r2); return new URL(link.toString()); }
@Override public URL getChangeSetLink(LogEntry changeSet) throws IOException { return new URL(url, String.format("repos/%s/info?revision=%d", encodePath(repositoryInstance), changeSet.getRevision())); }
/** * {@inheritDoc} */ @Override public String getCurrentRevision() { return String.valueOf(getRevision()); }
@Override public URL getFileLink(Path path) throws IOException { if (path.getEditType() == EditType.DELETE) return null; // no file if it's gone int r = path.getLogEntry().getRevision(); return new URL(url, String.format("repos/%s/goto/%s?revision=%d", encodePath(repositoryInstance),encodePath(getPath(path)), r)); }
@Override public URL getFileLink(Path path) throws IOException { if (path.getEditType() == EditType.DELETE) return null; // no file if it's gone int r = path.getLogEntry().getRevision(); return new URL(url, String.format("goto.svn?name=%s&revision=%d&path=%s", repositoryInstance,r,URLEncoder.encode(getPath(path), URL_CHARSET))); }
@Override public URL getDiffLink(Path path) throws IOException { if(path.getEditType()!= EditType.EDIT) return null; // no diff if this is not an edit change int r = path.getLogEntry().getRevision(); return new URL(url, String.format("diffprev.svn?name=%s&commitrev=%d&committedRevision=%d&revision=%d&path=%s", repositoryInstance,r,r,r,URLEncoder.encode(getPath(path), URL_CHARSET))); }
@Override public URL getFileLink(Path path) throws IOException { int revision = path.getLogEntry().getRevision(); String pathWithoutSlash = trimHeadSlash(path.getValue()); String command = pathWithoutSlash + params().add("rev=" + revision); return new URL(getAssemblaBasePath("nodes"), command); }
@Override public URL getDiffLink(Path path) throws IOException { if(path.getEditType()!= EditType.EDIT) return null; // no diff if this is not an edit change int r = path.getLogEntry().getRevision(); return new URL(url, getPath(path)+String.format("?r1=%d&r2=%d",Integer.valueOf(r-1), Integer.valueOf(r))); }
@Override public URL getDiffLink(Path path) throws IOException { if (path.getEditType() != EditType.EDIT) { return null; // no diff if this is not an edit change } int r = path.getLogEntry().getRevision(); return new URL(url, trimHeadSlash(path.getValue()) + param().add("r1=" + (r - 1)).add("r2=" + r)); }
@Override public URL getDiffLink(Path path) throws IOException { if(path.getEditType()!= EditType.EDIT) return null; // no diff if this is not an edit change int r = path.getLogEntry().getRevision(); return new URL(url, String.format("repos/%s/diff/%s?revision=%d", encodePath(repositoryInstance),encodePath(getPath(path)), r)); }
/** * {@inheritDoc} */ @Override public String getCurrentRevision() { return String.valueOf(getRevision()); }
@Override public URL getFileLink(Path path) throws IOException { if (path.getEditType() == EditType.DELETE) { return null; // no file if it's gone } int r = path.getLogEntry().getRevision(); return new URL(url, String.format("repos/%s/goto/%s?revision=%d", encodePath(repositoryInstance), encodePath(getPath(path)), r)); }
@Override public URL getChangeSetLink(LogEntry changeSet) throws IOException { return new URL(url, String.format("revinfo.svn?name=%s&revision=%d", repositoryInstance, changeSet.getRevision())); }
@Override public URL getDiffLink(Path path) throws IOException { if (path.getEditType() != EditType.EDIT) { return null; // no diff if this is not an edit change } int r = path.getLogEntry().getRevision(); return new URL(url, String.format("diffprev.svn?name=%s&commitrev=%d&committedRevision=%d&revision=%d&path=%s", repositoryInstance, r, r, r, URLEncoder.encode(getPath(path), URL_CHARSET))); }
@Override public URL getDiffLink(Path path) throws IOException { if (path.getEditType() != EditType.EDIT) { return null; // no diff if this is not an edit change } int r = path.getLogEntry().getRevision(); return new URL(url, String.format("repos/%s/diff/%s?revision=%d", encodePath(repositoryInstance), encodePath(getPath(path)), r)); }
@Override public URL getFileLink(Path path) throws IOException { if (path.getEditType() == EditType.DELETE) { return null; // no file if it's gone } int r = path.getLogEntry().getRevision(); return new URL(url, String.format("goto.svn?name=%s&revision=%d&path=%s", repositoryInstance, r, URLEncoder.encode(getPath(path), URL_CHARSET))); }
@Override public URL getDiffLink(Path path) throws IOException { if (path.getEditType() != EditType.EDIT) { return null; // no diff if this is not an edit change } int r = path.getLogEntry().getRevision(); return new URL(url, String.format("diffprev.svn?name=%s&commitrev=%d&committedRevision=%d&revision=%d&path=%s", repositoryInstance, Integer.valueOf(r), Integer.valueOf(r), Integer.valueOf(r), URLEncoder.encode(getPath(path), URL_CHARSET))); }
/** * {@inheritDoc} */ public URL getChangeSetLink(SubversionChangeLogSet.LogEntry changeSet) throws IOException { int revision = changeSet.getRevision(); QueryBuilder query = new QueryBuilder(null); query.add("rev=" + revision); query.add("view=rev"); return new URL(url, query.toString()); } }