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

12

/opengrok-jel/jrcs/src/main/java/org/apache/commons/jrcs/diff/
H A DDiffAlgorithm.java79 * @param rev the revised text
83 public abstract Revision diff(Object[] orig, Object[] rev) argument
H A DDiff.java155 * @param rev the revision to compare with the original.
159 public static Revision diff(Object[] orig, Object[] rev) argument
162 if (orig == null || rev == null)
167 return diff(orig, rev, null);
174 * @param rev the revision to compare with the original.
179 public static Revision diff(Object[] orig, Object[] rev, argument
183 if (orig == null || rev == null)
188 return new Diff(orig, algorithm).diff(rev);
194 * @param rev the revision to compare with the original.
198 public Revision diff(Object[] rev) argument
212 compare(Object[] orig, Object[] rev) argument
[all...]
H A DDelta.java114 * @param rev the chunk in the revised text.
118 public static Delta newDelta(Chunk orig, Chunk rev) argument
121 [rev.size() > 0 ? 1 : 0];
131 result.init(orig, rev);
146 * @param rev revisioned text
148 protected Delta(Chunk orig, Chunk rev) argument
150 init(orig, rev);
157 * @param rev revisioned text
159 protected void init(Chunk orig, Chunk rev) argument
162 revised = rev;
[all...]
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
165 * @param rev The revised sequence to be compared with the original.
171 public Revision diff(Object[] orig, Object[] rev) argument
174 // create map eqs, such that for each item in both orig and rev
176 Map eqs = buildEqSet(orig, rev);
179 // indx[i] = NOT_FOUND_i if orig[i] is not in rev
184 // jndx[j] = NOT_FOUND_j if orig[j] is not in rev
185 // jndx[j] = firstOccurrence(rev[j], orig)
186 int[] jndx = buildIndex(eqs, rev, NOT_FOUND_
270 buildEqSet(Object[] orig, Object[] rev) argument
[all...]
H A DAddDelta.java81 public AddDelta(int origpos, Chunk rev) argument
83 init(new Chunk(origpos, 0), rev);
H A DChangeDelta.java80 public ChangeDelta(Chunk orig, Chunk rev) argument
82 init(orig, rev);
/opengrok-jel/jrcs/src/main/java/org/apache/commons/jrcs/diff/myers/
H A DMyersDiff.java91 public Revision diff(Object[] orig, Object[] rev) argument
94 PathNode path = buildPath(orig, rev);
95 return buildRevision(path, orig, rev);
104 * @param rev The revised sequence.
108 public static PathNode buildPath(Object[] orig, Object[] rev) argument
113 if (rev == null)
118 final int M = rev.length;
154 // orig and rev are zero-based
157 while (i < N && j < M && orig[i].equals(rev[j]))
184 * @param rev Th
190 buildRevision(PathNode path, Object[] orig, Object[] rev) argument
[all...]
/opengrok-jel/jrcs/src/main/java/org/apache/commons/jrcs/rcs/
H A DLines.java151 Node rev = l.getRevision();
152 o = annotationFormat.format(new Object[]{rev.getVersion(), rev.getAuthor(), rev.getDate(), o});
/opengrok-jel/jrcs/src/main/java/org/apache/commons/jrcs/tools/
H A DJDiff.java114 Object[] rev = loadFile(argv[1]);
117 Revision r = df.diff(rev);
127 if (!Diff.compare(rev, reco))
H A DJRCS.java142 Object[] rev = editor.toArray();
144 Object[] rev = Diff.randomEdit(orig, n++);
145 //rev = Diff.stringToArray(archive.doKeywords(Diff.arrayToString(rev), null));
146 //System.out.print(Archive.arrayToString(rev));
148 Version newVer = archive.addRevision(rev, ver);
158 archive.removeKeywords(rev)))
164 System.out.println(Diff.arrayToString(rev));
166 System.out.print(Diff.diff(rec, rev).toRCSString());
/opengrok-jel/src/org/opensolaris/opengrok/history/
H A DRCSRepository.java68 public InputStream getHistoryGet(String parent, String basename, String rev) argument
73 return new RCSget(rcsFile.getPath(), rev);
75 logger.warning("Failed to retrieve revision '" + rev + "' of '"
113 String rev = n.getVersion().toString();
115 a.addLine(rev, author);
H A DCVSRepository.java187 public InputStream getHistoryGet(String parent, String basename, String rev) argument
193 String revision = rev;
195 if (rev.indexOf(':') != -1) {
196 revision = rev.substring(0, rev.indexOf(':'));
320 String rev = matcher.group(1);
322 ret.addLine(rev, author);
H A DPerforceRepository.java72 public Annotation annotate(File file, String rev) throws IOException { argument
76 PerforceHistoryParser.getRevisions(file, rev).getHistoryEntries();
88 cmd.add(file.getPath() + ((rev == null) ? "" : "#" + rev));
122 public InputStream getHistoryGet(String parent, String basename, String rev) argument
129 cmd.add(basename + ((rev == null) ? "" : "#" + rev));
H A DRazorRepository.java206 private File getRazorArchiveBinaryFileFor(File file, String rev) argument
209 return pathTranslation(file, "/Archive/BINARY/", "", "@" + rev + ".Z");
234 public InputStream getHistoryGet( String parent, String basename, String rev) { argument
238 getRazorArchiveBinaryFileFor(new File(parent, basename), rev);
252 return new BufferedInputStream(new RCSget(rcsPath, rev));
259 return SCCSget.getRevision(cmd, sccsFile, rev);
263 + basename + "' rev='" + rev + "': " + e.getMessage());
H A DSCCSRepository.java70 public InputStream getHistoryGet(String parent, String basename, String rev) { argument
74 return SCCSget.getRevision(cmd, history, rev);
116 String rev = matcher.group(1);
118 authors_cache.put(rev, auth);
174 String rev = matcher.group(1);
175 String author = authors_cache.get(rev);
179 a.addLine(rev, author);
H A DAnnotation.java73 return idx < 0 ? "" : infos.get(idx).rev;
127 String rev; // revision column in html view field in class:Annotation.RevInfo
130 public RevInfo(String rev, String author, Desc desc) { argument
131 this.rev = rev;
310 buf.append("{\"rev\":").append(Util.jsStringLiteral(info.rev))
H A DMonotoneRepository.java71 public InputStream getHistoryGet(String parent, String basename, String rev) argument
79 String revision = rev;
185 String rev = null;
190 rev = matcher.group(1);
192 ret.addLine(rev, author);
194 ret.addLine(rev, author);
H A DMercurialRepository.java73 "changeset: {rev}:{node|short}\\n"
78 "changeset: {rev}:{node|short}:{node}\\n"
293 public InputStream getHistoryGet(String parent, String basename, String rev) argument
301 String revision = rev;
303 if (rev.indexOf(':') != -1) {
304 revision = rev.substring(0, rev.indexOf(':'));
410 String rev = matcher.group(1);
411 if (!lastRev.equals(rev)) {
413 HistoryEntry he = revs.get(rev);
[all...]
H A DAccuRevRepository.java97 public Annotation annotate(File file, String rev) { argument
107 if (rev != null) {
109 cmd.add(rev.trim());
166 public InputStream getHistoryGet(String parent, String basename, String rev) argument
205 cmd.add(rev.trim());
H A DBazaarRepository.java103 public InputStream getHistoryGet(String parent, String basename, String rev) argument
114 String argv[] = {cmd, "cat", "-r", rev, filename};
198 String rev = matcher.group(1);
200 ret.addLine(rev, author);
H A DGitRepository.java167 long rev;
175 rev = 0xFFFFFFFFL & dis.readInt();
182 m.put(new String(hash), Long.toString(rev, 10));
314 public InputStream getHistoryGet(String parent, String basename, String rev) argument
329 String argv[] = {cmd, "show", rev + ":" + filename};
344 String path = getCorrectPath(filename, rev);
345 argv[2] = rev + ":" + path;
472 String rev = matcher.group(1);
474 ret.addLine(rev, author);
H A DSubversionRepository.java218 public InputStream getHistoryGet(String parent, String basename, String rev) argument
235 cmd.add(rev);
281 String rev; field in class:SubversionRepository.AnnotateHandler
297 rev = null;
300 rev = attr.getValue("revision");
309 annotation.addLine(rev, author);
/opengrok-jel/src/org/opensolaris/opengrok/web/
H A DPageConfig.java96 private String rev; field in class:PageConfig
151 String[] rev = new String[2];
161 rev[i - 1] = tmp[1];
166 if (rev[0] == null || rev[1] == null
167 || rev[0].length() == 0 || rev[1].length() == 0
168 || rev[0].equals(rev[1]))
175 data.rev1 = rev[
[all...]
/opengrok-jel/src/org/opensolaris/opengrok/search/context/
H A DHistoryContext.java180 String rev = he.getRevision();
203 wcontext, nrev, rev);
207 wcontext, nrev, rev);
239 * @param rev current revision
244 String rev) throws IOException
255 .append("?r2=").append(qv).append('@').append(rev)
242 writeMatch(Appendable out, String line, int start, int end, boolean flatten, String path, String wcontext, String nrev, String rev) argument
/opengrok-jel/web/static/
H A Dopengrok.js66 rev: null, // see mast.jsp, possible overwrite by diff.jsp
71 /** Link to the history of the shown document. Append <var>O.rev</var>
74 /** Download link to the file of the shown document. Append <var>O.rev</var>
238 if (Y.Lang.isValue(O.rev)) { // via diff.jspf, mast.jsp
239 uri += '?' + O.rev;
286 // generate rev and author column
296 rcol += '<div name="' + rid + '">' + rev.rev + '</div>';
297 acol += '<div name="' + rid + '">' + rev.author + '</div>';
300 rev
[all...]

Completed in 30 milliseconds

12