Searched defs:rev (Results 1 - 25 of 27) 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 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);
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 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 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...]
/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/src/org/opensolaris/opengrok/history/
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 DPerforceHistoryParser.java86 static History getRevisions(File file, String rev) throws IOException { argument
91 cmd.add(file.getName() + ((rev == null) ? "" : "#"+rev));
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 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 DRepoRepository.java131 public InputStream getHistoryGet(String parent, String basename, String rev) { argument
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 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 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 DClearCaseRepository.java116 public InputStream getHistoryGet(String parent, String basename, String rev) argument
134 String decorated = filename + "@@" + rev;
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 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 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 DRepository.java171 * @param rev The revision to get.
176 String parent, String basename, String rev);
175 getHistoryGet( String parent, String basename, String rev) argument
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 DHistoryGuru.java124 * @param rev the revision to annotate (<code>null</code> means BASE)
129 public Annotation annotate(File file, String rev) throws IOException { argument
134 ret = repos.annotate(file, rev);
143 // !!! cannot do this because of not matching rev ids (keys)
144 // first is the most recent one, so we need the position of "rev"
146 //if (hent.indexOf(rev)>0) {
147 // hent = hent.subList(hent.indexOf(rev), hent.size());
152 // be a problem, we need to revise how we shorten the rev # for
271 * @param rev The revision to get.
275 public InputStream getRevision(String parent, String basename, String rev) argument
[all...]
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 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/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

Completed in 29 milliseconds

12