@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 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, Integer.valueOf(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",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 } // https://demo-server.visualsvn.com/!/#tortoisesvn/commit/r27333/head/trunk/src/Utils/MiscUI/SciEdit.cpp int r = path.getLogEntry().getRevision(); String value = String.format("%s/commit/r%d/head%s", url, r, path.getValue()); if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine("DiffLink URL: " + value); } return new URL(value); }
@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 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 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, 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, 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 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)), 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, String.format("repos/%s/diff/%s?revision=%d", encodePath(repositoryInstance), encodePath(getPath(path)), 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, 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 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)); }