/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 | 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 | 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 | 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...] |
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);
|
/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/jrcs/src/main/java/org/apache/commons/jrcs/rcs/ |
H A D | Lines.java | 145 Node rev = l.getRevision(); 146 o = annotationFormat.format(new Object[]{rev.getVersion(), rev.getAuthor(), rev.getDate(), o});
|
/opengrok/src/org/opensolaris/opengrok/web/ |
H A D | DiffData.java | 51 public String rev[]; field in class:DiffData 53 * with {@link #rev} */
|
H A D | PageConfig.java | 108 private String rev; field in class:PageConfig 200 data.rev = new String[2]; 215 data.rev[i - 1] = p.substring(j + 1); 219 if (data.rev[0] == null || data.rev[1] == null 220 || data.rev[0].length() == 0 || data.rev[1].length() == 0 221 || data.rev[0].equals(data.rev[1])) { 235 in[i] = HistoryGuru.getInstance().getRevision(f.getParent(), f.getName(), data.rev[ [all...] |
/opengrok/jrcs/src/main/java/org/apache/commons/jrcs/tools/ |
H A D | JDiff.java | 108 Object[] rev = loadFile(argv[1]); 111 Revision r = df.diff(rev); 121 if (!Diff.compare(rev, reco))
|
H A D | JRCS.java | 141 Object[] rev = editor.toArray(); 143 Object[] rev = Diff.randomEdit(orig, n++); 144 //rev = Diff.stringToArray(archive.doKeywords(Diff.arrayToString(rev), null)); 145 //System.out.print(Archive.arrayToString(rev)); 147 Version newVer = archive.addRevision(rev, ver); 157 archive.removeKeywords(rev))) 163 System.out.println(Diff.arrayToString(rev)); 165 System.out.print(Diff.diff(rec, rev).toRCSString());
|
/opengrok/src/org/opensolaris/opengrok/history/ |
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 | 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 | 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 | 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 | MercurialRepository.java | 82 = CHANGESET + "{rev}:{node|short}\\n" 204 * @param rev revision 205 * @return contents of the file in revision rev 207 private InputStream getHistoryRev(String fullpath, String rev) { argument 213 String revision = rev; 215 if (rev.indexOf(':') != -1) { 216 revision = rev.substring(0, rev.indexOf(':')); 269 * {rev}:{node|short}) 278 // Extract {rev} fro 370 getHistoryGet(String parent, String basename, String rev) argument [all...] |
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 | 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 | 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 | 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 | 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
|
/opengrok/test/org/opensolaris/opengrok/web/ |
H A D | PageConfigTest.java | 181 String rev = cfg.getRequestedRevision(); 183 assertNotNull(rev); 184 assertEquals(revisions[i], rev); 185 assertFalse(rev.contains("r="));
|