From cf70f6904cb6479ef81e90f10f0ebcfbf188e1c3 Mon Sep 17 00:00:00 2001 From: Nadya Zabrodina Date: Tue, 2 Jul 2013 17:38:31 +0400 Subject: [PATCH] IDEA-108904 hg: mercurial can't show file log *do not use --follow with largefiles extension (workaround for hg bug) --- .../src/org/zmlx/hg4idea/provider/HgHistoryProvider.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/hg4idea/src/org/zmlx/hg4idea/provider/HgHistoryProvider.java b/plugins/hg4idea/src/org/zmlx/hg4idea/provider/HgHistoryProvider.java index aff70413096e..73c96f4f8b04 100644 --- a/plugins/hg4idea/src/org/zmlx/hg4idea/provider/HgHistoryProvider.java +++ b/plugins/hg4idea/src/org/zmlx/hg4idea/provider/HgHistoryProvider.java @@ -112,7 +112,10 @@ public class HgHistoryProvider implements VcsHistoryProvider { int limit = vcsConfiguration.LIMIT_HISTORY ? vcsConfiguration.MAXIMUM_HISTORY_ROWS : -1; final HgLogCommand logCommand = new HgLogCommand(project); - logCommand.setFollowCopies(!filePath.isDirectory()); + //workaround: --follow options doesn't work with largefiles extension; + //see http://selenic.com/pipermail/mercurial-devel/2013-May/051209.html + logCommand + .setFollowCopies(!filePath.isDirectory() && HgUtil.getRepositoryNamedConfig(project, vcsRoot, "extensions.largefiles") == null); logCommand.setIncludeRemoved(true); try { return logCommand.execute(new HgFile(vcsRoot, filePath), limit, false);