mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-108904 hg: mercurial can't show file log
*do not use --follow with largefiles extension (workaround for hg bug)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user