Mercurial > hg4j
comparison 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 |
comparison
equal
deleted
inserted
replaced
569:c4fd1037bc6f | 570:36853bb80a35 |
---|---|
102 nextChunk = fileHistory; | 102 nextChunk = fileHistory; |
103 bh.useFileUpTo(currentFile, fileLastClogRevIndex); | 103 bh.useFileUpTo(currentFile, fileLastClogRevIndex); |
104 if (currentFile.isCopy()) { | 104 if (currentFile.isCopy()) { |
105 // TODO SessionContext.getPathFactory() and replace all Path.create | 105 // TODO SessionContext.getPathFactory() and replace all Path.create |
106 HgRepository repo = currentFile.getRepo(); | 106 HgRepository repo = currentFile.getRepo(); |
107 Nodeid originLastRev = currentFile.getCopySourceRevision(); | |
107 currentFile = repo.getFileNode(currentFile.getCopySourceName()); | 108 currentFile = repo.getFileNode(currentFile.getCopySourceName()); |
108 fileLastClogRevIndex = repo.getChangelog().getRevisionIndex(currentFile.getCopySourceRevision()); | 109 fileLastClogRevIndex = currentFile.getChangesetRevisionIndex(currentFile.getRevisionIndex(originLastRev)); |
109 // XXX perhaps, shall fail with meaningful exception if new file doesn't exist (.i/.d not found for whatever reason) | 110 // XXX perhaps, shall fail with meaningful exception if new file doesn't exist (.i/.d not found for whatever reason) |
110 // or source revision is missing? | 111 // or source revision is missing? |
111 } else { | 112 } else { |
112 currentFile = null; // stop iterating | 113 currentFile = null; // stop iterating |
113 } | 114 } |