Searched refs:rev (Results 1 - 25 of 41) sorted by relevance

12

/opengrok/jrcs/src/main/java/org/apache/commons/jrcs/diff/
H A DDiffAlgorithm.java78 * @param rev the revised text
82 public abstract Revision diff(Object[] orig, Object[] rev) argument
H A DDiff.java154 * @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 DDelta.java111 * @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 DSimpleDiff.java103 * 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 DAddDelta.java80 public AddDelta(int origpos, Chunk rev) argument
82 init(new Chunk(origpos, 0), rev);
H A DChangeDelta.java79 public ChangeDelta(Chunk orig, Chunk rev) argument
81 init(orig, rev);
/opengrok/jrcs/src/main/java/org/apache/commons/jrcs/diff/myers/
H A DMyersDiff.java90 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 DLines.java145 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 DDiffData.java51 public String rev[]; field in class:DiffData
53 * with {@link #rev} */
H A DPageConfig.java108 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 DJDiff.java108 Object[] rev = loadFile(argv[1]);
111 Revision r = df.diff(rev);
121 if (!Diff.compare(rev, reco))
H A DJRCS.java141 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 DPerforceRepository.java69 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 DRCSRepository.java60 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 DRazorRepository.java197 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 DSCCSRepository.java68 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 DMercurialRepository.java82 = 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 DMonotoneRepository.java68 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 DCVSRepository.java210 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 DAccuRevRepository.java91 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 DAnnotation.java199 Line(String rev, String aut, boolean ena) { argument
200 revision = (rev == null) ? "" : rev;
H A DSSCMRepository.java168 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 DSubversionRepository.java255 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 DHistoryContext.java150 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 DPageConfigTest.java181 String rev = cfg.getRequestedRevision();
183 assertNotNull(rev);
184 assertEquals(revisions[i], rev);
185 assertFalse(rev.contains("r="));

Completed in 31 milliseconds

12