diff cmdline/org/tmatesoft/hg/console/Annotate.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 c4fd1037bc6f
children
line wrap: on
line diff
--- a/cmdline/org/tmatesoft/hg/console/Annotate.java	Thu Jul 18 18:03:51 2013 +0200
+++ b/cmdline/org/tmatesoft/hg/console/Annotate.java	Thu Jul 18 18:47:45 2013 +0200
@@ -60,7 +60,7 @@
 
 		public void next(LineInfo lineInfo) {
 			if (lineNumbers) {
-				System.out.printf("%3d:%3d: %s", lineInfo.getChangesetIndex(), lineInfo.getLineNumber(), new String(lineInfo.getContent()));
+				System.out.printf("%3d:%3d: %s", lineInfo.getChangesetIndex(), lineInfo.getOriginLineNumber(), new String(lineInfo.getContent()));
 			} else {
 				System.out.printf("%3d: %s", lineInfo.getChangesetIndex(), new String(lineInfo.getContent()));
 			}