comparison src/org/tmatesoft/hg/core/HgLogCommand.java @ 415:ee8264d80747

Explicit constant for regular file flags, access to flags for a given file revision
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 22 Mar 2012 18:54:11 +0100
parents 2747b0723867
children 528b6780a8bd
comparison
equal deleted inserted replaced
414:bb278ccf9866 415:ee8264d80747
233 csetTransform.checkFailure(); 233 csetTransform.checkFailure();
234 if (fileNode.isCopy()) { 234 if (fileNode.isCopy()) {
235 // even if we do not follow history, report file rename 235 // even if we do not follow history, report file rename
236 do { 236 do {
237 if (handler instanceof FileHistoryHandler) { 237 if (handler instanceof FileHistoryHandler) {
238 HgFileRevision src = new HgFileRevision(repo, fileNode.getCopySourceRevision(), fileNode.getCopySourceName()); 238 HgFileRevision src = new HgFileRevision(repo, fileNode.getCopySourceRevision(), null, fileNode.getCopySourceName());
239 HgFileRevision dst = new HgFileRevision(repo, fileNode.getRevision(0), fileNode.getPath(), src.getPath()); 239 HgFileRevision dst = new HgFileRevision(repo, fileNode.getRevision(0), null, fileNode.getPath(), src.getPath());
240 try { 240 try {
241 ((FileHistoryHandler) handler).copy(src, dst); 241 ((FileHistoryHandler) handler).copy(src, dst);
242 } catch (HgCallbackTargetException.Wrap ex) { 242 } catch (HgCallbackTargetException.Wrap ex) {
243 throw new HgCallbackTargetException(ex).setRevision(fileNode.getCopySourceRevision()).setFileName(fileNode.getCopySourceName()); 243 throw new HgCallbackTargetException(ex).setRevision(fileNode.getCopySourceRevision()).setFileName(fileNode.getCopySourceName());
244 } 244 }