Searched defs:rev (Results 1 - 25 of 30) 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 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);
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 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 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...]
/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/src/org/opensolaris/opengrok/web/
H A DDiffData.java51 public String rev[]; field in class:DiffData
53 * with {@link #rev} */
/opengrok/src/org/opensolaris/opengrok/history/
H A DRepoRepository.java109 InputStream getHistoryGet(String parent, String basename, String rev) { argument
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 DPerforceHistoryParser.java85 public static History getRevisions(File file, String rev) throws IOException { argument
90 cmd.add(file.getName() + PerforceRepository.getRevisionCmd(rev));
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 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 DClearCaseRepository.java116 public InputStream getHistoryGet(String parent, String basename, String rev) { argument
134 String decorated = filename + "@@" + rev;
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 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 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 DBazaarRepository.java104 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 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 DHistoryGuru.java131 * @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 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 DFileHistoryCache.java588 * @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 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

Completed in 57 milliseconds

12