Mercurial > hg4j
comparison src/org/tmatesoft/hg/core/HgAnnotateCommand.java @ 677:1c49c0cee540
Report line number at the first appearance, like 'hg annotate -l' does
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 18 Jul 2013 18:47:45 +0200 |
parents | 3219cfadda49 |
children | 58a6900f845d |
comparison
equal
deleted
inserted
replaced
676:3219cfadda49 | 677:1c49c0cee540 |
---|---|
141 * Describes a line reported through {@link Inspector#next(LineInfo)} | 141 * Describes a line reported through {@link Inspector#next(LineInfo)} |
142 * | 142 * |
143 * Clients shall not implement this interface | 143 * Clients shall not implement this interface |
144 */ | 144 */ |
145 public interface LineInfo { | 145 public interface LineInfo { |
146 /** | |
147 * @return 1-based index of the line in the annotated revision | |
148 */ | |
146 int getLineNumber(); | 149 int getLineNumber(); |
150 | |
151 /** | |
152 * @return 1-based line number at the first appearance, at changeset {@link #getChangesetIndex()} | |
153 */ | |
154 int getOriginLineNumber(); | |
155 /** | |
156 * @return changeset revision this line was introduced at | |
157 */ | |
147 int getChangesetIndex(); | 158 int getChangesetIndex(); |
159 | |
160 /** | |
161 * @return line content | |
162 */ | |
148 byte[] getContent(); | 163 byte[] getContent(); |
149 } | 164 } |
150 } | 165 } |