Mercurial > jhg
comparison src/org/tmatesoft/hg/core/LogCommand.java @ 88:61eedab3eb3e
Status between two revisions to recognize copy/rename
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 26 Jan 2011 05:46:47 +0100 |
parents | 4222b04f34ee |
children | af1f3b78b918 |
comparison
equal
deleted
inserted
replaced
87:25f2e5d1cd8b | 88:61eedab3eb3e |
---|---|
177 fileNode.history(startRev, endRev, this); | 177 fileNode.history(startRev, endRev, this); |
178 if (handler instanceof FileHistoryHandler && fileNode.isCopy()) { | 178 if (handler instanceof FileHistoryHandler && fileNode.isCopy()) { |
179 // even if we do not follow history, report file rename | 179 // even if we do not follow history, report file rename |
180 do { | 180 do { |
181 FileRevision src = new FileRevision(repo, fileNode.getCopySourceRevision(), fileNode.getCopySourceName()); | 181 FileRevision src = new FileRevision(repo, fileNode.getCopySourceRevision(), fileNode.getCopySourceName()); |
182 FileRevision dst = new FileRevision(repo, fileNode.getRevisionNumber(0), fileNode.getPath()); | 182 FileRevision dst = new FileRevision(repo, fileNode.getRevision(0), fileNode.getPath()); |
183 ((FileHistoryHandler) handler).copy(src, dst); | 183 ((FileHistoryHandler) handler).copy(src, dst); |
184 if (limit > 0 && count >= limit) { | 184 if (limit > 0 && count >= limit) { |
185 // if limit reach, follow is useless. | 185 // if limit reach, follow is useless. |
186 break; | 186 break; |
187 } | 187 } |