Package org.opengrok.indexer.history
Class SubversionRepository
java.lang.Object
org.opengrok.indexer.history.RepositoryInfo
org.opengrok.indexer.history.Repository
org.opengrok.indexer.history.SubversionRepository
- All Implemented Interfaces:
Serializable
Access to a Subversion repository.
TODO The current implementation does not support nested repositories as described in http://svnbook.red-bean.com/en/1.0/ch07s03.html
- Author:
- Trond Norbye
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The command to use to access the repository if none was given explicitly.static final String
The property name used to obtain the client command for this repository.protected String
Fields inherited from class org.opengrok.indexer.history.Repository
ignoredDirs, ignoredFiles, OUTPUT_DATE_FORMAT, RepoCommand, tagList
Fields inherited from class org.opengrok.indexer.history.RepositoryInfo
branch, currentVersion, datePatterns, parent, remote, type, working
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
fileHasAnnotation
(File file) boolean
fileHasHistory
(File file) boolean
Returns true if this repository is usable in this context (for SCM systems that use external binaries, the binary must be available etc).void
setDirectoryName
(File directory) Specify the name of the root directory for this repository.Methods inherited from class org.opengrok.indexer.history.Repository
buildTagList, determineBranch, determineCurrentVersion, determineParent, doCreateCache, ensureCommand, format, getCommand, getHistoryGet, getHistoryGet, getIgnoredDirs, getIgnoredFiles, getLastHistoryEntry, getRepoCommand, getRepoRelativePath, getRevisionForAnnotate, isRepositoryFor, parse
Methods inherited from class org.opengrok.indexer.history.RepositoryInfo
equals, fillFromProject, getBranch, getCurrentVersion, getDatePatterns, getDirectoryName, getDirectoryNameRelative, getParent, getType, hashCode, isAnnotationCacheEnabled, isHandleRenamedFiles, isHistoryBasedReindex, isHistoryCacheEnabled, isHistoryEnabled, isMergeCommitsEnabled, isMergeCommitsSupported, isRemote, isTagsEnabled, setAnnotationCacheEnabled, setBranch, setCurrentVersion, setDatePatterns, setDirectoryNameRelative, setHandleRenamedFiles, setHistoryBasedReindex, setHistoryCacheEnabled, setHistoryEnabled, setMergeCommitsEnabled, setParent, setRemote, setTagsEnabled, setType, setWorking, toString
-
Field Details
-
CMD_PROPERTY_KEY
The property name used to obtain the client command for this repository.- See Also:
-
CMD_FALLBACK
The command to use to access the repository if none was given explicitly.- See Also:
-
reposPath
-
-
Constructor Details
-
SubversionRepository
public SubversionRepository()
-
-
Method Details
-
setDirectoryName
Description copied from class:RepositoryInfo
Specify the name of the root directory for this repository.- Overrides:
setDirectoryName
in classRepositoryInfo
- Parameters:
directory
- the new root directory
-
annotate
- Throws:
IOException
-
fileHasAnnotation
-
fileHasHistory
-
isWorking
public boolean isWorking()Description copied from class:RepositoryInfo
Returns true if this repository is usable in this context (for SCM systems that use external binaries, the binary must be available etc).- Overrides:
isWorking
in classRepositoryInfo
- Returns:
- true if the HistoryGuru may use the repository
-
determineCurrentVersion
- Throws:
IOException
-