/opengrok/jrcs/src/main/java/org/apache/commons/jrcs/diff/ |
H A D | DiffAlgorithm.java | 78 * @param rev the revised text 82 public abstract Revision diff(Object[] orig, Object[] rev) argument
|
H A D | AddDelta.java | 80 public AddDelta(int origpos, Chunk rev) argument 82 init(new Chunk(origpos, 0), rev);
|
H A D | ChangeDelta.java | 79 public ChangeDelta(Chunk orig, Chunk rev) argument 81 init(orig, rev);
|
H A D | Delta.java | 111 * @param rev the chunk in the revised text. 113 public static Delta newDelta(Chunk orig, Chunk rev) argument 116 [rev.size() > 0 ? 1 : 0]; 126 result.init(orig, rev); 141 protected Delta(Chunk orig, Chunk rev) argument 143 init(orig, rev); 150 protected void init(Chunk orig, Chunk rev) argument 153 revised = rev;
|
H A D | Diff.java | 154 * @param rev the revision to compare with the original. 157 public static Revision diff(Object[] orig, Object[] rev) argument 160 if (orig == null || rev == null) 165 return diff(orig, rev, null); 172 * @param rev the revision to compare with the original. 176 public static Revision diff(Object[] orig, Object[] rev, argument 180 if (orig == null || rev == null) 185 return new Diff(orig, algorithm).diff(rev); 191 * @param rev the revision to compare with the original. 194 public Revision diff(Object[] rev) argument 209 compare(Object[] orig, Object[] rev) argument [all...] |
H A D | SimpleDiff.java | 103 * indx[i] = eqs(orig[i]) and jndx[i] = eqs(rev[i]). The algorithm can 104 * now operate on indx and jndx instead of orig and rev. Thus, comparisons 163 * @param rev The revised sequence to be compared with the original. 167 public Revision diff(Object[] orig, Object[] rev) argument 170 // create map eqs, such that for each item in both orig and rev 172 Map eqs = buildEqSet(orig, rev); 175 // indx[i] = NOT_FOUND_i if orig[i] is not in rev 180 // jndx[j] = NOT_FOUND_j if orig[j] is not in rev 181 // jndx[j] = firstOccurrence(rev[j], orig) 182 int[] jndx = buildIndex(eqs, rev, NOT_FOUND_ 264 buildEqSet(Object[] orig, Object[] rev) argument [all...] |
/opengrok/jrcs/src/main/java/org/apache/commons/jrcs/diff/myers/ |
H A D | MyersDiff.java | 90 public Revision diff(Object[] orig, Object[] rev) argument 93 PathNode path = buildPath(orig, rev); 94 return buildRevision(path, orig, rev); 103 * @param rev The revised sequence. 107 public static PathNode buildPath(Object[] orig, Object[] rev) argument 112 if (rev == null) 117 final int M = rev.length; 155 // orig and rev are zero-based 158 while (i < N && j < M && orig[i].equals(rev[j])) 185 * @param rev Th 190 buildRevision(PathNode path, Object[] orig, Object[] rev) argument [all...] |
/opengrok/src/org/opensolaris/opengrok/web/ |
H A D | DiffData.java | 51 public String rev[]; field in class:DiffData 53 * with {@link #rev} */
|
/opengrok/src/org/opensolaris/opengrok/history/ |
H A D | RepoRepository.java | 109 InputStream getHistoryGet(String parent, String basename, String rev) { argument
|
H A D | RCSRepository.java | 60 InputStream getHistoryGet(String parent, String basename, String rev) { argument 64 return new RCSget(rcsFile.getPath(), rev); 67 "Failed to retrieve revision " + rev + " of " + basename, ioe); 95 String rev = n.getVersion().toString(); 97 a.addLine(rev, author, true);
|
H A D | PerforceHistoryParser.java | 85 public static History getRevisions(File file, String rev) throws IOException { argument 90 cmd.add(file.getName() + PerforceRepository.getRevisionCmd(rev));
|
H A D | PerforceRepository.java | 69 public Annotation annotate(File file, String rev) throws IOException { argument 73 = PerforceHistoryParser.getRevisions(file, rev).getHistoryEntries(); 85 cmd.add(file.getPath() + getRevisionCmd(rev)); 114 InputStream getHistoryGet(String parent, String basename, String rev) { argument 120 cmd.add(basename + getRevisionCmd(rev)); 230 * Parse internal rev number and returns it in format suitable for P4 command-line. 231 * @param rev Internal rev number. 232 * @return rev number formatted for P4 command-line. 234 public static String getRevisionCmd(String rev) { argument [all...] |
H A D | AccuRevRepository.java | 91 public Annotation annotate(File file, String rev) throws IOException { argument 108 if (rev != null) { 110 cmd.add(rev.trim()); 177 InputStream getHistoryGet(String parent, String basename, String rev) { argument 226 cmd.add(rev.trim());
|
H A D | Annotation.java | 199 Line(String rev, String aut, boolean ena) { argument 200 revision = (rev == null) ? "" : rev;
|
H A D | ClearCaseRepository.java | 116 public InputStream getHistoryGet(String parent, String basename, String rev) { argument 134 String decorated = filename + "@@" + rev;
|
H A D | SCCSRepository.java | 68 public InputStream getHistoryGet(String parent, String basename, String rev) { argument 72 return SCCSget.getRevision(RepoCommand, history, rev); 114 String rev = matcher.group(1); 116 authors_cache.put(rev, auth); 179 String rev = matcher.group(1); 180 String author = authors_cache.get(rev); 185 a.addLine(rev, author, true);
|
H A D | MonotoneRepository.java | 68 public InputStream getHistoryGet(String parent, String basename, String rev) { argument 74 String revision = rev; 186 String rev = null; 190 rev = matcher.group(1); 192 ret.addLine(rev, author, true); 194 ret.addLine(rev, author, true);
|
H A D | SSCMRepository.java | 168 InputStream getHistoryGet(String parent, final String basename, String rev) { argument 204 if (rev != null) { 205 argv.add("-v" + rev); 216 new Object[]{new File(parent, basename).getAbsolutePath(), String.valueOf(status), rev}); 344 String rev = matcher.group(2); 346 ret.addLine(rev, author, true);
|
H A D | BazaarRepository.java | 104 public InputStream getHistoryGet(String parent, String basename, String rev) { argument 114 String argv[] = {RepoCommand, "cat", "-r", rev, filename}; 198 String rev = matcher.group(1); 200 ret.addLine(rev, author, true);
|
H A D | CVSRepository.java | 210 public InputStream getHistoryGet(String parent, String basename, String rev) { argument 214 String revision = rev; 216 if (rev.indexOf(':') != -1) { 217 revision = rev.substring(0, rev.indexOf(':')); 317 String rev = matcher.group(1); 319 ret.addLine(rev, author, true);
|
H A D | HistoryGuru.java | 131 * @param rev the revision to annotate (<code>null</code> means BASE) 136 public Annotation annotate(File file, String rev) throws IOException { argument 141 ret = repo.annotate(file, rev); 152 // !!! cannot do this because of not matching rev ids (keys) 153 // first is the most recent one, so we need the position of "rev" 155 //if (hent.indexOf(rev)>0) { 156 // hent = hent.subList(hent.indexOf(rev), hent.size()); 254 * @param rev The revision to get 257 public InputStream getRevision(String parent, String basename, String rev) { argument 262 ret = rep.getHistoryGet(parent, basename, rev); [all...] |
H A D | RazorRepository.java | 197 File getRazorArchiveBinaryFileFor(File file, String rev) throws IOException { argument 198 return pathTranslation(file, "/Archive/BINARY/", "", "@" + rev + ".Z"); 218 InputStream getHistoryGet(String parent, String basename, String rev) { argument 222 = getRazorArchiveBinaryFileFor(new File(parent, basename), rev); 236 return new BufferedInputStream(new RCSget(rcsPath, rev)); 243 return SCCSget.getRevision(RepoCommand, sccsFile, rev); 247 + parent + ", " + basename + ", " + rev + ")", e);
|
H A D | FileHistoryCache.java | 588 * @param rev latest revision which has been just indexed 590 private void storeLatestCachedRevision(Repository repository, String rev) { argument 596 writer.write(rev); 613 String rev = null; 619 rev = input.readLine(); 636 return rev;
|
H A D | SubversionRepository.java | 255 public InputStream getHistoryGet(String parent, String basename, String rev) { argument 275 cmd.add(rev); 311 String rev; field in class:SubversionRepository.AnnotateHandler 328 rev = null; 332 rev = attr.getValue("revision"); 346 annotation.addLine(rev, author, true);
|
/opengrok/src/org/opensolaris/opengrok/search/context/ |
H A D | HistoryContext.java | 150 String rev = he.getRevision(); 170 writeMatch(sb, line, start, end, true,path,wcontext,nrev,rev); 173 writeMatch(out, line, start, end, false,path,wcontext,nrev,rev); 204 * @param rev current revision 208 int start, int end, boolean flatten, String path, String wcontext, String nrev, String rev) 216 out.append("<a href="+wcontext+Prefix.DIFF_P+path+"?r2="+path+"@"+rev+"&r1="+path+"@"+nrev+" title=\"diff to previous version\">diff</a> "); 207 writeMatch(Appendable out, String line, int start, int end, boolean flatten, String path, String wcontext, String nrev, String rev) argument
|