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 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))); }
@Override public URL getDiffLink(SubversionChangeLogSet.Path path) throws IOException { return new URL(this.baseUrl, String.format(DIFF_FORMAT, this.repname, URLEncoder.encode(path.getValue(), "UTF-8"), Integer.valueOf(path.getLogEntry().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, getPath(path)+String.format("?r1=%d&r2=%d",r-1,r)); }
/** * {@inheritDoc} */ public URL getFileLink(SubversionChangeLogSet.Path path) throws IOException { int revision = path.getLogEntry().getRevision(); QueryBuilder query = new QueryBuilder(null); query.add("rev=" + revision); query.add("view=log"); return new URL(url, trimHeadSlash(path.getValue()) + query); }
@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 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, getPath(path)+String.format("?r1=%d&r2=%d",r-1,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 revision = path.getLogEntry().getRevision(); String command = String.format("node/diff/%d/%d", revision, revision-1); String pathWithoutSlash = trimHeadSlash(path.getValue()); return new URL(getAssemblaBasePath(command), pathWithoutSlash + params()); }
@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, 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)); }
@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 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 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, 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)); }