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) {
728728 return repos ;
729729 }
730730
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-
758731 protected Repository getRepository (File path ) {
759732 File file = path ;
760733 Set <String > rootKeys = repositoryRoots .keySet ();
Original file line number Diff line number Diff line change 9191import org .opengrok .indexer .configuration .PathAccepter ;
9292import org .opengrok .indexer .configuration .Project ;
9393import org .opengrok .indexer .configuration .RuntimeEnvironment ;
94- import org .opengrok .indexer .history .HistoryException ;
9594import org .opengrok .indexer .history .HistoryGuru ;
9695import org .opengrok .indexer .history .Repository ;
9796import org .opengrok .indexer .logger .LoggerFactory ;
@@ -427,19 +426,6 @@ public void update() throws IOException {
427426 sourceRoot = new File (env .getSourceRootFile (), dir );
428427 }
429428
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-
443429 dir = Util .fixPathIfWindows (dir );
444430
445431 String startuid = Util .path2uid (dir , "" );
You can’t perform that action at this time.
0 commit comments