Mercurial > jhg
diff src/org/tmatesoft/hg/repo/HgBlameFacility.java @ 570:36853bb80a35
Tests for HgAnnotateCommand with follow/no-follow option
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 11 Apr 2013 16:07:17 +0200 |
parents | c4fd1037bc6f |
children | e49f9d9513fa |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgBlameFacility.java Wed Apr 10 20:04:54 2013 +0200 +++ b/src/org/tmatesoft/hg/repo/HgBlameFacility.java Thu Apr 11 16:07:17 2013 +0200 @@ -104,8 +104,9 @@ if (currentFile.isCopy()) { // TODO SessionContext.getPathFactory() and replace all Path.create HgRepository repo = currentFile.getRepo(); + Nodeid originLastRev = currentFile.getCopySourceRevision(); currentFile = repo.getFileNode(currentFile.getCopySourceName()); - fileLastClogRevIndex = repo.getChangelog().getRevisionIndex(currentFile.getCopySourceRevision()); + fileLastClogRevIndex = currentFile.getChangesetRevisionIndex(currentFile.getRevisionIndex(originLastRev)); // XXX perhaps, shall fail with meaningful exception if new file doesn't exist (.i/.d not found for whatever reason) // or source revision is missing? } else {