File tree Expand file tree Collapse file tree 2 files changed +0
-41
lines changed
opengrok-indexer/src/main/java/org/opengrok/indexer Expand file tree Collapse file tree 2 files changed +0
-41
lines changed Original file line number Diff line number Diff line change @@ -728,33 +728,6 @@ private List<Repository> getReposFromString(Collection<String> repositories) {
728
728
return repos ;
729
729
}
730
730
731
- /**
732
- * Ensure that we have a directory in the cache. If it's not there, fetch
733
- * its history and populate the cache.
734
- *
735
- * @param file the root path to test
736
- * @throws HistoryException if an error occurs while accessing the history
737
- * cache
738
- */
739
- public void ensureHistoryCacheExists (File file ) throws HistoryException {
740
- if (!useCache ()) {
741
- return ;
742
- }
743
-
744
- Repository repository = getRepository (file );
745
- if (repository == null ) {
746
- // no repository -> no history
747
- return ;
748
- }
749
-
750
- if (!repository .hasHistoryForDirectories () ||
751
- historyCache .hasCacheForDirectory (file , repository )) {
752
- return ;
753
- }
754
-
755
- createCache (repository , null );
756
- }
757
-
758
731
protected Repository getRepository (File path ) {
759
732
File file = path ;
760
733
Set <String > rootKeys = repositoryRoots .keySet ();
Original file line number Diff line number Diff line change 91
91
import org .opengrok .indexer .configuration .PathAccepter ;
92
92
import org .opengrok .indexer .configuration .Project ;
93
93
import org .opengrok .indexer .configuration .RuntimeEnvironment ;
94
- import org .opengrok .indexer .history .HistoryException ;
95
94
import org .opengrok .indexer .history .HistoryGuru ;
96
95
import org .opengrok .indexer .history .Repository ;
97
96
import org .opengrok .indexer .logger .LoggerFactory ;
@@ -427,19 +426,6 @@ public void update() throws IOException {
427
426
sourceRoot = new File (env .getSourceRootFile (), dir );
428
427
}
429
428
430
- if (env .isHistoryEnabled ()) {
431
- try {
432
- HistoryGuru .getInstance ().ensureHistoryCacheExists (
433
- sourceRoot );
434
- } catch (HistoryException ex ) {
435
- String exmsg = String .format (
436
- "Failed to ensureHistoryCacheExists() for %s" ,
437
- sourceRoot );
438
- LOGGER .log (Level .SEVERE , exmsg , ex );
439
- continue ;
440
- }
441
- }
442
-
443
429
dir = Util .fixPathIfWindows (dir );
444
430
445
431
String startuid = Util .path2uid (dir , "" );
You can’t perform that action at this time.
0 commit comments