Mercurial > hg4j
comparison src/org/tmatesoft/hg/repo/HgChangelog.java @ 424:6437d261048a
Deprecated code removed
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Wed, 28 Mar 2012 15:42:15 +0200 |
| parents | 9c9c442b5f2e |
| children | 063b0663495a |
comparison
equal
deleted
inserted
replaced
| 423:9c9c442b5f2e | 424:6437d261048a |
|---|---|
| 19 import java.io.IOException; | 19 import java.io.IOException; |
| 20 import java.io.UnsupportedEncodingException; | 20 import java.io.UnsupportedEncodingException; |
| 21 import java.util.ArrayList; | 21 import java.util.ArrayList; |
| 22 import java.util.Arrays; | 22 import java.util.Arrays; |
| 23 import java.util.Calendar; | 23 import java.util.Calendar; |
| 24 import java.util.Collection; | |
| 25 import java.util.Collections; | 24 import java.util.Collections; |
| 26 import java.util.Date; | 25 import java.util.Date; |
| 27 import java.util.Formatter; | 26 import java.util.Formatter; |
| 28 import java.util.HashMap; | 27 import java.util.HashMap; |
| 29 import java.util.List; | 28 import java.util.List; |
| 38 import org.tmatesoft.hg.internal.IterateControlMediator; | 37 import org.tmatesoft.hg.internal.IterateControlMediator; |
| 39 import org.tmatesoft.hg.internal.Lifecycle; | 38 import org.tmatesoft.hg.internal.Lifecycle; |
| 40 import org.tmatesoft.hg.internal.Pool; | 39 import org.tmatesoft.hg.internal.Pool; |
| 41 import org.tmatesoft.hg.internal.RevlogStream; | 40 import org.tmatesoft.hg.internal.RevlogStream; |
| 42 import org.tmatesoft.hg.util.CancelSupport; | 41 import org.tmatesoft.hg.util.CancelSupport; |
| 43 import org.tmatesoft.hg.util.Pair; | |
| 44 import org.tmatesoft.hg.util.ProgressSupport; | 42 import org.tmatesoft.hg.util.ProgressSupport; |
| 45 | 43 |
| 46 /** | 44 /** |
| 47 * Representation of the Mercurial changelog file (list of ChangeSets) | 45 * Representation of the Mercurial changelog file (list of ChangeSets) |
| 48 * | 46 * |
| 114 * @param revisionIndex index of revision being inspected, local to the inspected object | 112 * @param revisionIndex index of revision being inspected, local to the inspected object |
| 115 * @param nodeid revision being inspected | 113 * @param nodeid revision being inspected |
| 116 * @param cset changeset raw data | 114 * @param cset changeset raw data |
| 117 */ | 115 */ |
| 118 void next(int revisionIndex, Nodeid nodeid, RawChangeset cset); | 116 void next(int revisionIndex, Nodeid nodeid, RawChangeset cset); |
| 119 } | |
| 120 | |
| 121 /** | |
| 122 * Unlike regular {@link Inspector}, this one supplies changeset revision along with its parents and children according | |
| 123 * to parent information of the revlog this inspector visits. | |
| 124 * @see HgDataFile#history(HgChangelog.TreeInspector) | |
| 125 * @deprecated use {@link org.tmatesoft.hg.core.HgChangesetTreeHandler} and HgLogCommand#execute(org.tmatesoft.hg.core.HgChangesetTreeHandler)} | |
| 126 */ | |
| 127 @Deprecated | |
| 128 public interface TreeInspector { | |
| 129 // the reason TreeInsector is in HgChangelog, not in Revlog, because despite the fact it can | |
| 130 // be applied to any revlog, it's not meant to provide revisions of any revlog it's beeing applied to, | |
| 131 // but changeset revisions always. | |
| 132 // TODO HgChangelog.walk(TreeInspector) | |
| 133 void next(Nodeid changesetRevision, Pair<Nodeid, Nodeid> parentChangesets, Collection<Nodeid> childChangesets); | |
| 134 } | 117 } |
| 135 | 118 |
| 136 /** | 119 /** |
| 137 * Entry in the Changelog | 120 * Entry in the Changelog |
| 138 */ | 121 */ |
