Mercurial > hg4j
diff 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 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgAnnotateCommand.java Thu Jul 18 18:03:51 2013 +0200 +++ b/src/org/tmatesoft/hg/core/HgAnnotateCommand.java Thu Jul 18 18:47:45 2013 +0200 @@ -143,8 +143,23 @@ * Clients shall not implement this interface */ public interface LineInfo { + /** + * @return 1-based index of the line in the annotated revision + */ int getLineNumber(); + + /** + * @return 1-based line number at the first appearance, at changeset {@link #getChangesetIndex()} + */ + int getOriginLineNumber(); + /** + * @return changeset revision this line was introduced at + */ int getChangesetIndex(); + + /** + * @return line content + */ byte[] getContent(); } }