https://defect.opensolaris.org/bz/show_bug.cgi?id=16658

           Summary: history cache is generated regardless of -H option to
                    indexer
    Classification: Development
           Product: opengrok
           Version: unspecified
          Platform: ANY/Generic
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: indexer
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


--- Comment #0 from leaf nunes <[email protected]> 2010-07-27 
15:19:11 UTC ---
The following code in src/org/opensolaris/opengrok/index/Indexer.java

        if (refreshHistory) {
            HistoryGuru.getInstance().createCache();
        } else if (repositories != null && !repositories.isEmpty()) {
            HistoryGuru.getInstance().createCache(repositories);
        }

seems to imply that whether or not -H is specified (which sets refreshHistory),
if there are repositories specified, a history cache will be produced. For most
repositories, this is probably fine, but in the case of very large repositories
(with users that care less about searching history and more about searching
content) it would be nice to be able to specify a repository for functions like
annotations and on-the-fly version comparisons without querying the change log
for every file at index time.

A workaround suggested on irc is to generate configuration.xml with
repositories, but generate an index with repositories turned off. I'll test
this, though i suspect that historycache files are implicitly required.

-- 
Configure bugmail: https://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
opengrok-dev mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opengrok-dev

Reply via email to