Modifier and Type | Class and Description |
---|---|
static class |
SVNWCDb.BaseMovedTo |
class |
SVNWCDb.BaseRemove |
class |
SVNWCDb.CheckReplace |
class |
SVNWCDb.Commit |
static class |
SVNWCDb.DirParsedInfo |
class |
SVNWCDb.InsertBase |
class |
SVNWCDb.InsertWorking |
static class |
SVNWCDb.ReposInfo |
protected static class |
SVNWCDb.ResolveBreakMovedAway |
ISVNWCDb.Moved, ISVNWCDb.NodeInstallInfo, ISVNWCDb.SVNWCDbBaseMovedToData, ISVNWCDb.SVNWCDbInfo, ISVNWCDb.SVNWCDbKind, ISVNWCDb.SVNWCDbLock, ISVNWCDb.SVNWCDbNodeCheckReplaceData, ISVNWCDb.SVNWCDbOpenMode, ISVNWCDb.SVNWCDbStatus, ISVNWCDb.SVNWCDbUpgradeData, ISVNWCDb.SwitchedInfo, ISVNWCDb.WCDbAdditionInfo, ISVNWCDb.WCDbBaseInfo, ISVNWCDb.WCDbDeletionInfo, ISVNWCDb.WCDbInfo, ISVNWCDb.WCDbRepositoryInfo, ISVNWCDb.WCDbWorkQueueInfo
Modifier and Type | Field and Description |
---|---|
static int |
FORMAT_FROM_SDB |
static long |
UNKNOWN_WC_ID |
INVALID_FILESIZE, INVALID_REVNUM, PRISTINE_STORAGE_RELPATH, PRISTINE_TEMPDIR_RELPATH, SDB_FILE, SDB_FILE_UPGRADE, WC_FORMAT_17, WC_FORMAT_18, WC_HAS_WORK_QUEUE, WCROOT_TEMPDIR_RELPATH
Constructor and Description |
---|
SVNWCDb() |
Modifier and Type | Method and Description |
---|---|
void |
addBaseDirectory(java.io.File localAbsPath,
java.io.File reposRelPath,
SVNURL reposRootUrl,
java.lang.String reposUuid,
long revision,
SVNProperties props,
long changedRev,
SVNDate changedDate,
java.lang.String changedAuthor,
java.util.List<java.io.File> children,
SVNDepth depth,
SVNProperties davCache,
SVNSkel conflict,
boolean updateActualProps,
SVNProperties actualProps,
java.util.Map<java.lang.String,SVNProperties> iprops,
SVNSkel workItems)
Add or replace a directory in the BASE tree.
|
void |
addBaseExcludedNode(java.io.File localAbsPath,
java.io.File reposRelPath,
SVNURL reposRootUrl,
java.lang.String reposUuid,
long revision,
ISVNWCDb.SVNWCDbKind kind,
ISVNWCDb.SVNWCDbStatus status,
SVNSkel conflict,
SVNSkel workItems)
Create a node in the BASE tree that is present in name only.
|
void |
addBaseFile(java.io.File localAbspath,
java.io.File reposRelpath,
SVNURL reposRootUrl,
java.lang.String reposUuid,
long revision,
SVNProperties props,
long changedRev,
SVNDate changedDate,
java.lang.String changedAuthor,
SvnChecksum checksum,
SVNProperties davCache,
boolean deleteWorking,
boolean updateActualProps,
SVNProperties actualProps,
boolean keepRecordedInfo,
boolean insertBaseDeleted,
java.util.Map<java.lang.String,SVNProperties> iprops,
SVNSkel conflict,
SVNSkel workItems)
Add or replace a file in the BASE tree.
|
void |
addBaseNotPresentNode(java.io.File localAbspath,
java.io.File reposRelPath,
SVNURL reposRootUrl,
java.lang.String reposUuid,
long revision,
ISVNWCDb.SVNWCDbKind kind,
SVNSkel conflict,
SVNSkel workItems) |
void |
addBaseSymlink(java.io.File localAbsPath,
java.io.File reposRelPath,
SVNURL reposRootUrl,
java.lang.String reposUuid,
long revision,
SVNProperties props,
long changedRev,
SVNDate changedDate,
java.lang.String changedAuthor,
java.io.File target,
SVNProperties davCache,
SVNSkel conflict,
boolean updateActualProps,
SVNProperties acutalProps,
SVNSkel workItems)
Add or replace a symlink in the BASE tree.
|
void |
addLock(java.io.File localAbsPath,
ISVNWCDb.SVNWCDbLock lock)
Add or replace LOCK for LOCAL_ABSPATH to DB.
|
static void |
addWorkItems(SVNSqlJetDb sDb,
SVNSkel skel) |
void |
addWorkQueue(java.io.File wcRootAbsPath,
SVNSkel workItem)
In the WCROOT associated with DB and WRI_ABSPATH, add WORK_ITEM to the
wcroot's work queue.
|
ISVNWCDb.SVNWCDbBaseMovedToData |
baseMovedTo(java.io.File localAbsPath) |
SVNSqlJetDb |
borrowDbTemp(java.io.File localDirAbsPath,
ISVNWCDb.SVNWCDbOpenMode mode) |
boolean |
checkPristine(java.io.File wcRootAbsPath,
SvnChecksum checksum)
Check for presence, according to the given mode (on how hard we should
examine things)
|
void |
cleanupPristine(java.io.File localAbsPath)
Remove all unreferenced pristines belonging to WRI_ABSPATH in DB.
|
void |
clearDavCacheRecursive(java.io.File localAbsPath) |
void |
close()
Close DB.
|
java.util.List<SVNWCContext.CommittableExternalInfo> |
committableExternalsBelow(java.io.File localAbsPath,
boolean immediatesOnly) |
void |
completedWorkQueue(java.io.File wcRootAbsPath,
long id)
In the WCROOT associated with DB and WRI_ABSPATH, mark work item ID as
completed.
|
long |
createReposId(SVNSqlJetDb sDb,
SVNURL reposRootUrl,
java.lang.String reposUuid)
For a given REPOS_ROOT_URL/REPOS_UUID pair, return the existing REPOS_ID
value.
|
void |
dropRoot(java.io.File localAbsPath) |
void |
ensureNoUnfinishedTransactions() |
void |
extendParentDelete(SVNSqlJetDb db,
long wcId,
java.io.File localRelPath,
SVNNodeKind kind,
int opDepth) |
long |
fetchReposId(SVNSqlJetDb db,
SVNURL reposRootUrl,
java.lang.String reposUuid) |
SVNWCDb.ReposInfo |
fetchReposInfo(SVNSqlJetDb sDb,
long repos_id) |
Structure<StructureFields.RepositoryInfo> |
fetchRepositoryInfo(SVNSqlJetDb sDb,
long repos_id) |
ISVNWCDb.WCDbWorkQueueInfo |
fetchWorkQueue(java.io.File wcRootAbsPath)
In the WCROOT associated with DB and WRI_ABSPATH, fetch a work item that
needs to be completed.
|
void |
forgetDirectoryTemp(java.io.File localDirAbspath) |
java.io.File |
fromRelPath(java.io.File wriAbsPath,
java.io.File localRelPath)
Compute the local abs path for a localRelPath located within the working
copy identified by wcRootAbsPath.
|
void |
gatherExternalDefinitions(java.io.File localAbsPath,
SVNExternalsStore externals) |
java.util.List<java.lang.String> |
gatherRepoChildren(SVNWCDbRoot root,
java.io.File localRelpath,
long opDepth) |
java.util.Set<java.lang.String> |
getBaseChildren(java.io.File localAbsPath)
Return a list of the BASE tree node's children's names.
|
java.util.Map<java.lang.String,ISVNWCDb.WCDbBaseInfo> |
getBaseChildrenMap(java.io.File localAbsPath,
boolean fetchLocks) |
java.util.Map<java.lang.String,ISVNWCDb.WCDbBaseInfo> |
getBaseChildrenMap(SVNWCDbRoot wcRoot,
java.io.File localRelPath,
boolean fetchLocks) |
SVNProperties |
getBaseDavCache(java.io.File localAbsPath)
Retrieve the dav cache for LOCAL_ABSPATH.
|
ISVNWCDb.WCDbBaseInfo |
getBaseInfo(java.io.File localAbsPath,
ISVNWCDb.WCDbBaseInfo.BaseInfoField... fields)
Retrieve information about a node in the BASE tree.
|
ISVNWCDb.WCDbBaseInfo |
getBaseInfo(SVNWCDbRoot root,
java.io.File localRelPath,
ISVNWCDb.WCDbBaseInfo.BaseInfoField... fields) |
SVNProperties |
getBaseProps(java.io.File localAbsPath)
Return the properties of the node LOCAL_ABSPATH in the BASE tree.
|
java.util.Set<java.lang.String> |
getChildrenOfWorkingNode(java.io.File localAbsPath) |
java.util.Map<java.lang.String,ISVNWCDb.SVNWCDbKind> |
getChildrenOpDepth(SVNWCDbRoot wcRoot,
java.io.File localRelPath,
int opDepth) |
ISVNOptions |
getConfig() |
java.util.List<java.io.File> |
getConflictMarkerFiles(java.io.File localAbsPath) |
java.util.Map<java.io.File,java.io.File> |
getExternalsDefinedBelow(java.io.File localAbsPath) |
java.lang.String |
getFileExternalTemp(java.io.File path)
Return the serialized file external info (from BASE) for LOCAL_ABSPATH.
|
int |
getFormatTemp(java.io.File localDirAbsPath)
temp function.
|
static <E extends java.lang.Enum<E>> |
getInfoFields(java.lang.Class<E> clazz,
E... fields) |
org.tmatesoft.svn.core.internal.wc17.db.SVNWCDb.MovedTo |
getMovedTo(boolean scan,
SVNWCDbSelectDeletionInfo stmt,
java.io.File currentRelPath,
SVNWCDbRoot wcRoot,
java.io.File localRelPath) |
java.util.Map<SVNURL,java.lang.String> |
getNodeLockTokensRecursive(java.io.File localAbsPath) |
SvnChecksum |
getPristineMD5(java.io.File wcRootAbsPath,
SvnChecksum sha1Checksum)
Get the MD-5 checksum of a pristine text identified by its SHA-1 checksum
SHA1_CHECKSUM.
|
java.io.File |
getPristinePath(java.io.File wcRootAbsPath,
SvnChecksum checksum)
Get the path to the pristine text file identified by SHA1_CHECKSUM.
|
SvnChecksum |
getPristineSHA1(java.io.File wcRootAbsPath,
SvnChecksum md5Checksum)
Get the SHA-1 checksum of a pristine text identified by its MD-5 checksum
MD5_CHECKSUM.
|
java.io.File |
getPristineTempDir(java.io.File wcRootAbsPath)
Get a directory in which the caller should create a uniquely named file
for later installation as a pristine text file.
|
SVNSqlJetDb |
getSDb(java.io.File localAbsPath) |
java.io.File |
getWCRoot(java.io.File wcRootAbspath) |
java.io.File |
getWCRootTempDir(java.io.File localAbspath) |
java.util.Set<java.lang.String> |
getWorkingChildren(java.io.File localAbsPath) |
static ISVNWCDb.SVNWCDbStatus |
getWorkingStatus(ISVNWCDb.SVNWCDbStatus status) |
void |
globalCommit(java.io.File localAbspath,
long newRevision,
long changedRevision,
SVNDate changedDate,
java.lang.String changedAuthor,
SvnChecksum newChecksum,
java.util.List<java.io.File> newChildren,
SVNProperties newDavCache,
boolean keepChangelist,
boolean noUnlock,
SVNSkel workItems)
Collapse the WORKING and ACTUAL tree changes down into BASE, called for
each committed node.
|
void |
globalRecordFileinfo(java.io.File localAbspath,
long translatedSize,
SVNDate lastModTime)
Record the TRANSLATED_SIZE and LAST_MOD_TIME for a versioned node.
|
void |
init(java.io.File localAbsPath,
java.io.File reposRelPath,
SVNURL reposRootUrl,
java.lang.String reposUuid,
long initialRev,
SVNDepth depth,
int workingCopyFormat)
Initialize the SqlDB for LOCAL_ABSPATH, which should be a working copy
path.
|
void |
insertIncompleteChildren(SVNSqlJetDb db,
long wcId,
java.io.File localRelpath,
long reposId,
java.io.File reposPath,
long revision,
java.util.List<java.io.File> children,
long opDepth) |
void |
installPristine(java.io.File tempfileAbspath,
SvnChecksum sha1Checksum,
SvnChecksum md5Checksum)
Install the file TEMPFILE_ABSPATH (which is sitting in a directory given
by
ISVNWCDb.getPristineTempDir(File) ) into the pristine data store, to be
identified by the SHA-1 checksum of its contents, SHA1_CHECKSUM. |
static boolean |
isAbsolute(java.io.File localAbsPath) |
boolean |
isNodeHidden(java.io.File localAbsPath)
Return TRUE if LOCAL_ABSPATH in DB "is not present, and I haven't
scheduled something over the top of it."
|
ISVNWCDb.SwitchedInfo |
isSwitched(java.io.File localAbsPath) |
boolean |
isWC17AccessEnabled() |
boolean |
isWCLocked(java.io.File localAbspath) |
boolean |
isWCLockOwns(java.io.File localAbspath,
boolean exact) |
boolean |
isWCRoot(java.io.File localAbspath) |
boolean |
isWCRoot(java.io.File localAbspath,
boolean isAdditionMode) |
void |
markConflictInternal(SVNWCDbRoot wcRoot,
java.io.File localRelPath,
SVNSkel conflictSkel) |
long[] |
minMaxRevisions(java.io.File localAbsPath,
boolean committed) |
SVNWCDbDir |
navigateToParent(SVNWCDbDir childPdh,
SVNSqlJetDb.Mode sMode) |
ISVNWCDb.SVNWCDbNodeCheckReplaceData |
nodeCheckReplace(java.io.File localAbspath) |
void |
obtainWCLock(java.io.File localAbspath,
int levelsToLock,
boolean stealLock) |
SVNWCDb.DirParsedInfo |
obtainWcRoot(java.io.File localAbspath) |
SVNWCDb.DirParsedInfo |
obtainWcRoot(java.io.File localAbspath,
boolean isAdditionMode) |
void |
opAddDirectory(java.io.File localAbsPath,
SVNProperties props,
SVNSkel workItems)
Add a new versioned directory.
|
void |
opAddFile(java.io.File localAbsPath,
SVNProperties props,
SVNSkel workItems)
As a new file, there are no properties.
|
void |
opAddSymlink(java.io.File localAbsPath,
java.io.File target,
SVNProperties props,
SVNSkel workItems) |
void |
opBumpRevisionPostUpdate(java.io.File localAbsPath,
SVNDepth depth,
java.io.File newReposRelPath,
SVNURL newReposRootURL,
java.lang.String newReposUUID,
long newRevision,
java.util.Collection<java.io.File> excludedPaths,
java.util.Map<java.io.File,java.util.Map<java.lang.String,SVNProperties>> inheritableProperties,
ISVNEventHandler eventHandler) |
void |
opCopy(java.io.File srcAbsPath,
java.io.File dstAbsPath,
java.io.File dstOpRootAbsPath,
boolean isMove,
SVNSkel workItems)
svn cp WCPATH WCPATH ...
|
void |
opCopyDir(java.io.File localAbsPath,
SVNProperties props,
long changedRev,
SVNDate changedDate,
java.lang.String changedAuthor,
java.io.File originalReposRelPath,
SVNURL originalRootUrl,
java.lang.String originalUuid,
long originalRevision,
java.util.List<java.io.File> children,
boolean isMove,
SVNDepth depth,
SVNSkel conflict,
SVNSkel workItems)
Record a copy at LOCAL_ABSPATH from a repository directory.
|
void |
opCopyFile(java.io.File localAbsPath,
SVNProperties props,
long changedRev,
SVNDate changedDate,
java.lang.String changedAuthor,
java.io.File originalReposRelPath,
SVNURL originalRootUrl,
java.lang.String originalUuid,
long originalRevision,
SvnChecksum checksum,
boolean updateActualProps,
SVNProperties newActualProps,
SVNSkel conflict,
SVNSkel workItems)
Record a copy at LOCAL_ABSPATH from a repository file.
|
void |
opCopyShadowedLayer(java.io.File srcAbsPath,
java.io.File dstAbsPath,
boolean isMove) |
void |
opDelete(java.io.File localAbsPath,
java.io.File movedToAbsPath,
boolean deleteDirExternals,
SVNSkel conflict,
SVNSkel workItems,
ISVNEventHandler eventHandler) |
SVNWCDb.BaseMovedTo |
opDepthMovedTo(long opDepth,
SVNWCDbRoot wcRoot,
java.io.File localRelPath) |
void |
open(ISVNWCDb.SVNWCDbOpenMode mode,
ISVNOptions config,
boolean autoUpgrade,
boolean enforceEmptyWQ)
Open a working copy administrative database context.
|
boolean |
opHandleMoveBack(java.io.File localAbsPath,
java.io.File movedFromAbsPath,
SVNSkel workItems) |
void |
opMakeCopy(java.io.File localAbspath,
SVNSkel conflicts,
SVNSkel workItems) |
void |
opMakeCopyTemp(java.io.File localAbspath,
boolean removeBase) |
void |
opMarkConflict(java.io.File localAbspath,
SVNSkel conflictSkel,
SVNSkel workItems) |
void |
opMarkResolved(java.io.File localAbspath,
boolean resolvedText,
boolean resolvedProps,
boolean resolvedTree,
SVNSkel workItems)
caller maintains ACTUAL, and how the resolution occurred.
|
java.util.Map<java.lang.String,SVNTreeConflictDescription> |
opReadAllTreeConflicts(java.io.File localAbsPath)
Return all the children of localAbsPath that are in tree conflicts.
|
SVNTreeConflictDescription |
opReadTreeConflict(java.io.File localAbsPath)
Get any tree conflict associated with localAbspath in DB.
|
void |
opRemoveEntryTemp(java.io.File localAbspath) |
void |
opRemoveNode(java.io.File localAbspath,
long notPresentRevision,
ISVNWCDb.SVNWCDbKind notPresentKind) |
void |
opRemoveWorkingTemp(java.io.File localAbspath) |
void |
opRevert(java.io.File localAbspath,
SVNDepth depth) |
void |
opSetBaseIncompleteTemp(java.io.File localDirAbspath,
boolean incomplete) |
void |
opSetChangelist(java.io.File localAbspath,
java.lang.String changelistName,
java.lang.String[] changeLists,
SVNDepth depth,
ISVNEventHandler eventHandler)
use NULL to remove from a changelist.
|
void |
opSetDirDepthTemp(java.io.File localAbspath,
SVNDepth depth) |
void |
opSetNewDirToIncompleteTemp(java.io.File localAbspath,
java.io.File reposRelpath,
SVNURL reposRootURL,
java.lang.String reposUuid,
long revision,
SVNDepth depth,
boolean insertBaseDeleted,
boolean deleteWorking,
SVNSkel conflict,
SVNSkel workItems) |
void |
opSetPropertyConflictMarkerFileTemp(java.io.File localAbspath,
java.lang.String prejBasename) |
void |
opSetProps(java.io.File localAbsPath,
SVNProperties props,
SVNSkel conflict,
boolean clearRecordedInfo,
SVNSkel workItems)
Set the properties of the node LOCAL_ABSPATH in the ACTUAL tree to PROPS.
|
void |
opSetRevAndReposRelpathTemp(java.io.File localAbspath,
long revision,
boolean setReposRelpath,
java.io.File reposRelpath,
SVNURL reposRootUrl,
java.lang.String reposUuid) |
void |
opSetTextConflictMarkerFilesTemp(java.io.File localAbspath,
java.io.File oldBasename,
java.io.File newBasename,
java.io.File wrkBasename) |
void |
opSetTreeConflict(java.io.File localAbspath,
SVNTreeConflictDescription treeConflict)
Set the tree conflict on LOCAL_ABSPATH in DB to TREE_CONFLICT.
|
void |
opStartDirectoryUpdateTemp(java.io.File localAbspath,
java.io.File newReposRelpath,
long newRevision) |
SVNWCDb.DirParsedInfo |
parseDir(java.io.File localAbsPath,
SVNSqlJetDb.Mode sMode) |
SVNWCDb.DirParsedInfo |
parseDir(java.io.File localAbspath,
SVNSqlJetDb.Mode sMode,
boolean isDetectWCGeneration,
boolean isAdditionMode) |
java.util.Set<java.lang.String> |
readChildren(java.io.File localAbsPath)
Return the basenames of the immediate children of LOCAL_ABSPATH in DB.
|
void |
readChildren(java.io.File localAbsPath,
java.util.Map<java.lang.String,ISVNWCDb.SVNWCDbInfo> children,
java.util.Set<java.lang.String> conflicts) |
void |
readChildren(SVNWCDbRoot root,
java.io.File localRelPath,
java.util.Map<java.lang.String,ISVNWCDb.SVNWCDbInfo> children,
java.util.Set<java.lang.String> conflicts) |
SVNSkel |
readConflict(java.io.File localAbsPath) |
SVNSkel |
readConflictInternal(SVNWCDbRoot wcRoot,
java.io.File localRelPath) |
java.util.List<SVNConflictDescription> |
readConflicts(java.io.File localAbsPath)
Return all conflicts that have LOCAL_ABSPATH as victim.
|
java.util.List<SVNWCConflictDescription17> |
readConflicts(java.io.File localAbsPath,
boolean createTempFiles) |
java.util.List<java.lang.String> |
readConflictVictims(java.io.File localAbsPath)
Return the basenames of the immediate children of LOCAL_ABSPATH in DB
that are conflicted.
|
Structure<StructureFields.NodeInfo> |
readInfo(java.io.File localAbsPath,
boolean isAdditionMode,
StructureFields.NodeInfo... fields) |
ISVNWCDb.WCDbInfo |
readInfo(java.io.File localAbsPath,
ISVNWCDb.WCDbInfo.InfoField... fields)
Retrieve information about a node.
|
Structure<StructureFields.NodeInfo> |
readInfo(java.io.File localAbsPath,
StructureFields.NodeInfo... fields) |
ISVNWCDb.WCDbInfo |
readInfo(SVNWCDbRoot wcRoot,
java.io.File localRelPath,
ISVNWCDb.WCDbInfo.InfoField... fields) |
ISVNWCDb.WCDbInfo |
readInfoBelowWorking(java.io.File localAbsPath) |
ISVNWCDb.WCDbInfo |
readInfoBelowWorking(SVNWCDbRoot wcRoot,
java.io.File localRelPath,
int belowOpDepth) |
ISVNWCDb.SVNWCDbKind |
readKind(java.io.File localAbsPath,
boolean allowMissing)
Return the kind of the node in DB at LOCAL_ABSPATH.
|
SVNNodeKind |
readKind(java.io.File localAbsPath,
boolean allowMissing,
boolean showDeleted,
boolean showHidden) |
ISVNWCDb.NodeInstallInfo |
readNodeInstallInfo(java.io.File localAbsPath,
java.io.File wriAbsPath) |
long |
readOpDepth(SVNWCDbRoot root,
java.io.File localRelPath) |
java.io.InputStream |
readPristine(java.io.File wcRootAbsPath,
SvnChecksum checksum)
Get a readable stream that will yield the pristine text identified by
CHECKSUM (### which should/must be its SHA-1 checksum?).
|
Structure<StructureFields.PristineInfo> |
readPristineInfo(java.io.File localAbspath) |
SVNProperties |
readPristineProperties(java.io.File localAbsPath)
Return the properties of the node LOCAL_ABSPATH in the WORKING tree
(looking through to the BASE tree as required).
|
SVNProperties |
readProperties(java.io.File localAbsPath)
Return the properties of the node LOCAL_ABSPATH in the ACTUAL tree
(looking through to the WORKING or BASE tree as required).
|
void |
readPropertiesRecursively(java.io.File localAbsPath,
SVNDepth depth,
boolean baseProperties,
boolean pristineProperties,
java.util.Collection<java.lang.String> changelists,
ISvnObjectReceiver<SVNProperties> receiver) |
void |
registerExternal(java.io.File definingAbsPath,
java.io.File localAbsPath,
SVNNodeKind kind,
SVNURL reposRootUrl,
java.lang.String reposUuid,
java.io.File reposRelPath,
long operationalRevision,
long revision) |
void |
releaseWCLock(java.io.File localAbspath) |
void |
removeBase(java.io.File localAbsPath)
Remove a node from the BASE tree.
|
void |
removeBase(java.io.File localAbsPath,
boolean keepAsWorking,
boolean queueDeletes,
boolean removeLocks,
long notPresentRevision,
SVNSkel conflict,
SVNSkel workItems) |
void |
removeLock(java.io.File localAbsPath)
Remove any lock for LOCAL_ABSPATH in DB.
|
void |
removePristine(java.io.File wcRootAbsPath,
SvnChecksum checksum)
Remove the pristine text with SHA-1 checksum SHA1_CHECKSUM from the
pristine store, if it is not referenced by any of the (other) WC DB
tables.
|
java.io.File |
requiredLockForResolve(java.io.File localAbsPath) |
void |
resolveBreakMovedAway(java.io.File localAbsPath,
ISVNEventHandler eventHandler) |
void |
resolveDeleteRaiseMovedAway(java.io.File localAbsPath,
ISVNEventHandler eventHandler) |
void |
retractParentDelete(SVNSqlJetDb db,
long wcId,
java.io.File localRelPath,
int opDepth) |
ISVNWCDb.WCDbAdditionInfo |
scanAddition(java.io.File localAbsPath,
ISVNWCDb.WCDbAdditionInfo.AdditionInfoField... fields)
Scan upwards for information about a known addition to the WORKING tree.
|
ISVNWCDb.WCDbRepositoryInfo |
scanBaseRepository(java.io.File localAbsPath,
ISVNWCDb.WCDbRepositoryInfo.RepositoryInfoField... fields)
Scan for a BASE node's repository information.
|
ISVNWCDb.WCDbDeletionInfo |
scanDeletion(java.io.File localAbsPath,
ISVNWCDb.WCDbDeletionInfo.DeletionInfoField... fields)
Scan upwards for additional information about a deleted node.
|
ISVNWCDb.Moved |
scanMoved(java.io.File localAbsPath) |
void |
setActualProperties(SVNSqlJetDb db,
long wcId,
java.io.File localRelpath,
SVNProperties props) |
void |
setBaseDavCache(java.io.File localAbsPath,
SVNProperties props)
Set the dav cache for LOCAL_ABSPATH to PROPS.
|
void |
setJournalModel(org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalMode journalMode) |
void |
setWC17SupportEnabled(boolean allowed) |
java.io.File |
toRelPath(java.io.File localAbsPath)
Compute the LOCAL_RELPATH for the given LOCAL_ABSPATH.
|
java.io.File |
toRelPath(java.io.File wriAbsPath,
java.io.File localAbsPath) |
void |
updateMovedAwayConflictVictim(java.io.File victimAbsPath,
ISVNEventHandler eventHandler) |
static void |
updateMoveListAdd(SVNWCDbRoot wcRoot,
java.io.File localRelPath,
SVNEventAction eventAction,
SVNNodeKind kind,
SVNStatusType contentState,
SVNStatusType propState) |
void |
updateMoveListNotify(SVNWCDbRoot wcRoot,
long oldRevision,
long newRevision,
ISVNEventHandler eventHandler) |
void |
upgradeBegin(java.io.File localAbspath,
ISVNWCDb.SVNWCDbUpgradeData upgradeData,
SVNURL repositoryRootUrl,
java.lang.String repositoryUUID) |
void |
upgradeInsertExternal(java.io.File localAbsPath,
SVNNodeKind kind,
java.io.File parentAbsPath,
java.io.File defLocalAbsPath,
java.io.File reposRelPath,
SVNURL reposRootUrl,
java.lang.String reposUuid,
long defPegRevision,
long defRevision) |
protected static void |
verifyDirUsable(SVNWCDbDir pdh) |
void |
wqAdd(java.io.File wriAbsPath,
SVNSkel workItem) |
public static final int FORMAT_FROM_SDB
public static final long UNKNOWN_WC_ID
public static boolean isAbsolute(java.io.File localAbsPath)
public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> getInfoFields(java.lang.Class<E> clazz, E... fields)
public void setWC17SupportEnabled(boolean allowed)
public boolean isWC17AccessEnabled()
public void open(ISVNWCDb.SVNWCDbOpenMode mode, ISVNOptions config, boolean autoUpgrade, boolean enforceEmptyWQ)
ISVNWCDb
This context is (initially) not associated with any particular working copy directory or working copy root (wcroot). As operations are performed, this context will load the appropriate wcroot information.
It should be closed manually using ISVNWCDb.close()
. In particular, this
will close any SQLite databases that have been opened and cached.
open
in interface ISVNWCDb
mode
- indicates whether the caller knows all interactions will be
read-only, whether writing will definitely happen, or whether
a default should be chosen.config
- should hold the various configuration options that may apply
to the administrative operation.autoUpgrade
- when is true, then the working copy databases will be
upgraded when possible (when an old database is found/detected
during the operation of a ISVNWCDb
API). If it is
detected that a manual upgrade is required, then
SVNErrorCode.WC_UPGRADE_REQUIRED
will be thrown from
that API. Passing false will allow a bare minimum of
APIs to function (most notably, the
ISVNWCDb.getFormatTemp(File)
function will always return a
value) since most of these APIs expect a current-format
database to be present.enforceEmptyWQ
- if is true, then any databases with stale work items in
their work queue will raise an error when they are opened. The
operation will raise SVNErrorCode.WC_CLEANUP_REQUIRED
.
Passing false for this routine means that the work
queue is being processed (via 'svn cleanup') and all
operations should be allowed.public void setJournalModel(org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalMode journalMode)
public void close()
ISVNWCDb
public void ensureNoUnfinishedTransactions() throws SVNException
SVNException
public ISVNOptions getConfig()
public void init(java.io.File localAbsPath, java.io.File reposRelPath, SVNURL reposRootUrl, java.lang.String reposUuid, long initialRev, SVNDepth depth, int workingCopyFormat) throws SVNException
ISVNWCDb
A REPOSITORY row will be constructed for the repository identified by REPOS_ROOT_URL and REPOS_UUID. Neither of these may be NULL.
A node will be created for the directory at REPOS_RELPATH will be added. If INITIAL_REV is greater than zero, then the node will be marked as "incomplete" because we don't know its children. Contrary, if the INITIAL_REV is zero, then this directory should represent the root and we know it has no children, so the node is complete.
DEPTH is the initial depth of the working copy, it must be a definite depth, not svn_depth_unknown.
init
in interface ISVNWCDb
SVNException
public long createReposId(SVNSqlJetDb sDb, SVNURL reposRootUrl, java.lang.String reposUuid) throws SVNException
SVNException
public static void addWorkItems(SVNSqlJetDb sDb, SVNSkel skel) throws SVNException
SVNException
public java.util.Map<java.io.File,java.io.File> getExternalsDefinedBelow(java.io.File localAbsPath) throws SVNException
getExternalsDefinedBelow
in interface ISVNWCDb
SVNException
public void gatherExternalDefinitions(java.io.File localAbsPath, SVNExternalsStore externals) throws SVNException
gatherExternalDefinitions
in interface ISVNWCDb
SVNException
public void addBaseExcludedNode(java.io.File localAbsPath, java.io.File reposRelPath, SVNURL reposRootUrl, java.lang.String reposUuid, long revision, ISVNWCDb.SVNWCDbKind kind, ISVNWCDb.SVNWCDbStatus status, SVNSkel conflict, SVNSkel workItems) throws SVNException
ISVNWCDb
The new node will be located at LOCAL_ABSPATH, and correspond to the
repository node described by
The node's kind is described by KIND, and the reason for its absence is
specified by STATUS. Only three values are allowed for STATUS:
If CONFLICT is not NULL, then it describes a conflict for this node. The
node will be record as conflicted (in ACTUAL).
Any work items that are necessary as part of this node construction may
be passed in WORK_ITEMS.
SVNWCDbStatus#Absent
ISVNWCDb.SVNWCDbStatus.Excluded
ISVNWCDb.SVNWCDbStatus.NotPresent
addBaseExcludedNode
in interface ISVNWCDb
SVNException
public void addBaseDirectory(java.io.File localAbsPath, java.io.File reposRelPath, SVNURL reposRootUrl, java.lang.String reposUuid, long revision, SVNProperties props, long changedRev, SVNDate changedDate, java.lang.String changedAuthor, java.util.List<java.io.File> children, SVNDepth depth, SVNProperties davCache, SVNSkel conflict, boolean updateActualProps, SVNProperties actualProps, java.util.Map<java.lang.String,SVNProperties> iprops, SVNSkel workItems) throws SVNException
ISVNWCDb
The directory is located at LOCAL_ABSPATH on the local filesystem, and
corresponds to
The directory properties are given by the PROPS.
The last-change information is given by
The directory's children are listed in CHILDREN. The child nodes do NOT
have to exist when this API is called. For each child node which does not
exists, an "incomplete" node will be added. These child nodes will be
added regardless of the DEPTH value. The caller must sort out which must
be recorded, and which must be omitted.
This subsystem does not use DEPTH, but it can be recorded here in the
BASE tree for higher-level code to use.
If CONFLICT is not NULL, then it describes a conflict for this node. The
node will be record as conflicted (in ACTUAL).
Any work items that are necessary as part of this node construction may
be passed in WORK_ITEMS.
addBaseDirectory
in interface ISVNWCDb
SVNException
public void insertIncompleteChildren(SVNSqlJetDb db, long wcId, java.io.File localRelpath, long reposId, java.io.File reposPath, long revision, java.util.List<java.io.File> children, long opDepth) throws SVNException
SVNException
public void extendParentDelete(SVNSqlJetDb db, long wcId, java.io.File localRelPath, SVNNodeKind kind, int opDepth) throws SVNException
SVNException
public void retractParentDelete(SVNSqlJetDb db, long wcId, java.io.File localRelPath, int opDepth) throws SVNException
SVNException
public void addBaseFile(java.io.File localAbspath, java.io.File reposRelpath, SVNURL reposRootUrl, java.lang.String reposUuid, long revision, SVNProperties props, long changedRev, SVNDate changedDate, java.lang.String changedAuthor, SvnChecksum checksum, SVNProperties davCache, boolean deleteWorking, boolean updateActualProps, SVNProperties actualProps, boolean keepRecordedInfo, boolean insertBaseDeleted, java.util.Map<java.lang.String,SVNProperties> iprops, SVNSkel conflict, SVNSkel workItems) throws SVNException
ISVNWCDb
The file is located at LOCAL_ABSPATH on the local filesystem, and
corresponds to
The file properties are given by the PROPS.
The last-change information is given by
The checksum of the file contents is given in CHECKSUM. An entry in the
pristine text base is NOT required when this API is called.
If the translated size of the file (its contents, translated as defined
by its properties) is known, then pass it as TRANSLATED_SIZE. Otherwise,
pass
If CONFLICT is not NULL, then it describes a conflict for this node. The
node will be record as conflicted (in ACTUAL).
Any work items that are necessary as part of this node construction may
be passed in WORK_ITEMS.ISVNWCDb.INVALID_FILESIZE
.
addBaseFile
in interface ISVNWCDb
SVNException
public void addBaseSymlink(java.io.File localAbsPath, java.io.File reposRelPath, SVNURL reposRootUrl, java.lang.String reposUuid, long revision, SVNProperties props, long changedRev, SVNDate changedDate, java.lang.String changedAuthor, java.io.File target, SVNProperties davCache, SVNSkel conflict, boolean updateActualProps, SVNProperties acutalProps, SVNSkel workItems) throws SVNException
ISVNWCDb
The symlink is located at LOCAL_ABSPATH on the local filesystem, and
corresponds to
The symlink's properties are given by the PROPS.
The last-change information is given by
The target of the symlink is specified by TARGET.
If CONFLICT is not NULL, then it describes a conflict for this node. The
node will be record as conflicted (in ACTUAL).
Any work items that are necessary as part of this node construction may
be passed in WORK_ITEMS.
addBaseSymlink
in interface ISVNWCDb
SVNException
public void addLock(java.io.File localAbsPath, ISVNWCDb.SVNWCDbLock lock) throws SVNException
ISVNWCDb
addLock
in interface ISVNWCDb
SVNException
public void addWorkQueue(java.io.File wcRootAbsPath, SVNSkel workItem) throws SVNException
ISVNWCDb
addWorkQueue
in interface ISVNWCDb
SVNException
public boolean checkPristine(java.io.File wcRootAbsPath, SvnChecksum checksum) throws SVNException
ISVNWCDb
checkPristine
in interface ISVNWCDb
SVNException
public void completedWorkQueue(java.io.File wcRootAbsPath, long id) throws SVNException
ISVNWCDb
completedWorkQueue
in interface ISVNWCDb
SVNException
public ISVNWCDb.WCDbWorkQueueInfo fetchWorkQueue(java.io.File wcRootAbsPath) throws SVNException
ISVNWCDb
Items are returned in the same order they were queued. This allows for (say) queueing work on a parent node to be handled before that of its children.
If there are no work items to be completed, then ID will be set to zero, and WORK_ITEM to NULL.
fetchWorkQueue
in interface ISVNWCDb
SVNException
public java.io.File fromRelPath(java.io.File wriAbsPath, java.io.File localRelPath) throws SVNException
ISVNWCDb
This is the reverse of ISVNWCDb.toRelPath(File)
. It should be used for
returning a persisted relpath back into an abspath.
fromRelPath
in interface ISVNWCDb
SVNException
public java.util.Set<java.lang.String> getBaseChildren(java.io.File localAbsPath) throws SVNException
ISVNWCDb
For the node indicated by LOCAL_ABSPATH, this function will return the names of all of its children in the list CHILDREN.
If the node is not a directory, then
SVNErrorCode.WC_NOT_WORKING_COPY
will be thrown.
getBaseChildren
in interface ISVNWCDb
SVNException
public java.util.Set<java.lang.String> getWorkingChildren(java.io.File localAbsPath) throws SVNException
SVNException
public SVNProperties getBaseDavCache(java.io.File localAbsPath) throws SVNException
ISVNWCDb
SVNErrorCode.WC_PATH_NOT_FOUND
if no dav cache can be located for
LOCAL_ABSPATH in DB.getBaseDavCache
in interface ISVNWCDb
SVNException
public void clearDavCacheRecursive(java.io.File localAbsPath) throws SVNException
clearDavCacheRecursive
in interface ISVNWCDb
SVNException
public ISVNWCDb.WCDbBaseInfo getBaseInfo(java.io.File localAbsPath, ISVNWCDb.WCDbBaseInfo.BaseInfoField... fields) throws SVNException
ISVNWCDb
For the BASE node implied by LOCAL_ABSPATH from the local filesystem, return information in the provided OUT parameters. Each OUT parameter may be NULL, indicating that specific item is not requested.
If there is no information about this node, then
SVNErrorCode.WC_PATH_NOT_FOUND
will be thrown.
The OUT parameters, and their "not available" values are:
STATUS | n/a (always available) |
KIND | n/a (always available) |
REVISION | -1 |
REPOS_RELPATH | NULL (caller should scan up) |
REPOS_ROOT_URL | NULL (caller should scan up) |
REPOS_UUID | NULL (caller should scan up) |
CHANGED_REV | -1 |
CHANGED_DATE | 0 |
CHANGED_AUTHOR | NULL |
LAST_MOD_TIME | 0 |
DEPTH | SVNDepth.UNKNOWN |
CHECKSUM | NULL |
TRANSLATED_SIZE | ISVNWCDb.INVALID_FILESIZE |
TARGET | NULL |
LOCK | NULL |
If the STATUS is normal, and the REPOS_* values are NULL, then the caller
should use #scanBaseRepository(File, RepositoryInfoField...)
to
scan up the BASE tree for the repository information.
If DEPTH is requested, and the node is NOT a directory, then the value will be set to svn_depth_unknown. If LOCAL_ABSPATH is a link, it's up to the caller to resolve depth for the link's target.
If CHECKSUM is requested, and the node is NOT a file, then it will be set to NULL.
If TRANSLATED_SIZE is requested, and the node is NOT a file, then it will
be set to ISVNWCDb.INVALID_FILESIZE
.
If TARGET is requested, and the node is NOT a symlink, then it will be set to NULL.
getBaseInfo
in interface ISVNWCDb
SVNException
public ISVNWCDb.WCDbBaseInfo getBaseInfo(SVNWCDbRoot root, java.io.File localRelPath, ISVNWCDb.WCDbBaseInfo.BaseInfoField... fields) throws SVNException
SVNException
public SVNProperties getBaseProps(java.io.File localAbsPath) throws SVNException
ISVNWCDb
If the node has no properties, return an empty hash. It will never return
the NULL.
If the node is not present in the BASE tree, throw an error.
getBaseProps
in interface ISVNWCDb
SVNException
public int getFormatTemp(java.io.File localDirAbsPath) throws SVNException
ISVNWCDb
getFormatTemp
in interface ISVNWCDb
SVNException
public SvnChecksum getPristineMD5(java.io.File wcRootAbsPath, SvnChecksum sha1Checksum) throws SVNException
ISVNWCDb
getPristineMD5
in interface ISVNWCDb
SVNException
public java.io.File getPristinePath(java.io.File wcRootAbsPath, SvnChecksum checksum) throws SVNException
ISVNWCDb
### This is temporary - callers should not be looking at the file directly.
getPristinePath
in interface ISVNWCDb
SVNException
public SvnChecksum getPristineSHA1(java.io.File wcRootAbsPath, SvnChecksum md5Checksum) throws SVNException
ISVNWCDb
Note: The MD-5 checksum is not strictly guaranteed to be unique in the database table, although duplicates are expected to be extremely rare.
### TODO: The behaviour is currently unspecified if the MD-5 checksum is not unique. Need to see whether this function is going to stay in use, and, if so, address this somehow.
getPristineSHA1
in interface ISVNWCDb
SVNException
public java.io.File getPristineTempDir(java.io.File wcRootAbsPath) throws SVNException
ISVNWCDb
The directory is guaranteed to be one that
ISVNWCDb.installPristine(File, SvnChecksum, SvnChecksum)
can use:
specifically, one from which it can atomically move the file.
getPristineTempDir
in interface ISVNWCDb
SVNException
public void globalRecordFileinfo(java.io.File localAbspath, long translatedSize, SVNDate lastModTime) throws SVNException
ISVNWCDb
This function will record the information within the WORKING node, if
present, or within the BASE tree. If neither node is present, then
SVNErrorCode.WC_PATH_NOT_FOUND
will be thrown.
TRANSLATED_SIZE may be ISVNWCDb.INVALID_FILESIZE
, which will be recorded
as such, implying "unknown size".
LAST_MOD_TIME may be 0, which will be recorded as such, implying "unknown last mod time".
globalRecordFileinfo
in interface ISVNWCDb
SVNException
public void installPristine(java.io.File tempfileAbspath, SvnChecksum sha1Checksum, SvnChecksum md5Checksum) throws SVNException
ISVNWCDb
ISVNWCDb.getPristineTempDir(File)
) into the pristine data store, to be
identified by the SHA-1 checksum of its contents, SHA1_CHECKSUM.
### the md5_checksum parameter is temporary.
installPristine
in interface ISVNWCDb
SVNException
public boolean isNodeHidden(java.io.File localAbsPath) throws SVNException
ISVNWCDb
isNodeHidden
in interface ISVNWCDb
SVNException
public SVNWCDb.DirParsedInfo parseDir(java.io.File localAbsPath, SVNSqlJetDb.Mode sMode) throws SVNException
SVNException
public SVNWCDb.DirParsedInfo parseDir(java.io.File localAbspath, SVNSqlJetDb.Mode sMode, boolean isDetectWCGeneration, boolean isAdditionMode) throws SVNException
SVNException
public boolean isWCLocked(java.io.File localAbspath) throws SVNException
isWCLocked
in interface ISVNWCDb
SVNException
public SVNSqlJetDb getSDb(java.io.File localAbsPath) throws SVNException
getSDb
in interface ISVNWCDb
SVNException
public void opAddDirectory(java.io.File localAbsPath, SVNProperties props, SVNSkel workItems) throws SVNException
ISVNWCDb
opAddDirectory
in interface ISVNWCDb
SVNException
public void opAddFile(java.io.File localAbsPath, SVNProperties props, SVNSkel workItems) throws SVNException
ISVNWCDb
opAddFile
in interface ISVNWCDb
SVNException
public void opAddSymlink(java.io.File localAbsPath, java.io.File target, SVNProperties props, SVNSkel workItems) throws SVNException
opAddSymlink
in interface ISVNWCDb
SVNException
public void opCopy(java.io.File srcAbsPath, java.io.File dstAbsPath, java.io.File dstOpRootAbsPath, boolean isMove, SVNSkel workItems) throws SVNException
ISVNWCDb
opCopy
in interface ISVNWCDb
SVNException
public void opCopyShadowedLayer(java.io.File srcAbsPath, java.io.File dstAbsPath, boolean isMove) throws SVNException
opCopyShadowedLayer
in interface ISVNWCDb
SVNException
public void opCopyDir(java.io.File localAbsPath, SVNProperties props, long changedRev, SVNDate changedDate, java.lang.String changedAuthor, java.io.File originalReposRelPath, SVNURL originalRootUrl, java.lang.String originalUuid, long originalRevision, java.util.List<java.io.File> children, boolean isMove, SVNDepth depth, SVNSkel conflict, SVNSkel workItems) throws SVNException
ISVNWCDb
This copy is NOT recursive. It simply establishes this one node. CHILDREN must be provided, and incomplete nodes will be constructed for them.
opCopyDir
in interface ISVNWCDb
SVNException
public void opCopyFile(java.io.File localAbsPath, SVNProperties props, long changedRev, SVNDate changedDate, java.lang.String changedAuthor, java.io.File originalReposRelPath, SVNURL originalRootUrl, java.lang.String originalUuid, long originalRevision, SvnChecksum checksum, boolean updateActualProps, SVNProperties newActualProps, SVNSkel conflict, SVNSkel workItems) throws SVNException
ISVNWCDb
opCopyFile
in interface ISVNWCDb
SVNException
public void opDelete(java.io.File localAbsPath, java.io.File movedToAbsPath, boolean deleteDirExternals, SVNSkel conflict, SVNSkel workItems, ISVNEventHandler eventHandler) throws SVNException
opDelete
in interface ISVNWCDb
SVNException
public void opMarkResolved(java.io.File localAbspath, boolean resolvedText, boolean resolvedProps, boolean resolvedTree, SVNSkel workItems) throws SVNException
ISVNWCDb
I'm not sure that these three values are the best way to do this, but they're handy for now.
opMarkResolved
in interface ISVNWCDb
SVNException
public void opMarkConflict(java.io.File localAbspath, SVNSkel conflictSkel, SVNSkel workItems) throws SVNException
opMarkConflict
in interface ISVNWCDb
SVNException
public void markConflictInternal(SVNWCDbRoot wcRoot, java.io.File localRelPath, SVNSkel conflictSkel) throws SVNException
SVNException
public java.util.Map<java.lang.String,SVNTreeConflictDescription> opReadAllTreeConflicts(java.io.File localAbsPath) throws SVNException
ISVNWCDb
opReadAllTreeConflicts
in interface ISVNWCDb
SVNException
public SVNTreeConflictDescription opReadTreeConflict(java.io.File localAbsPath) throws SVNException
ISVNWCDb
opReadTreeConflict
in interface ISVNWCDb
SVNException
public void opMakeCopy(java.io.File localAbspath, SVNSkel conflicts, SVNSkel workItems) throws SVNException
SVNException
public void opRevert(java.io.File localAbspath, SVNDepth depth) throws SVNException
opRevert
in interface ISVNWCDb
SVNException
public void opSetChangelist(java.io.File localAbspath, java.lang.String changelistName, java.lang.String[] changeLists, SVNDepth depth, ISVNEventHandler eventHandler) throws SVNException
ISVNWCDb
opSetChangelist
in interface ISVNWCDb
SVNException
public void opSetProps(java.io.File localAbsPath, SVNProperties props, SVNSkel conflict, boolean clearRecordedInfo, SVNSkel workItems) throws SVNException
ISVNWCDb
To specify no properties, PROPS must be an empty hash, not NULL. If the node is not present, throw an error.
CONFLICT is used to register a conflict on this node at the same time the properties are changed.
WORK_ITEMS are inserted into the work queue, as additional things that need to be completed before the working copy is stable.
NOTE: This will overwrite ALL working properties the node currently has. There is no opSetProp() function. Callers must read all the properties, change one, and write all the properties.
NOTE: This will create an entry in the ACTUAL table for the node if it does not yet have one.
opSetProps
in interface ISVNWCDb
SVNException
public void setActualProperties(SVNSqlJetDb db, long wcId, java.io.File localRelpath, SVNProperties props) throws SVNException
SVNException
public void opSetTreeConflict(java.io.File localAbspath, SVNTreeConflictDescription treeConflict) throws SVNException
ISVNWCDb
opSetTreeConflict
in interface ISVNWCDb
SVNException
public java.util.Set<java.lang.String> readChildren(java.io.File localAbsPath) throws SVNException
ISVNWCDb
readChildren
in interface ISVNWCDb
SVNException
public java.util.Set<java.lang.String> getChildrenOfWorkingNode(java.io.File localAbsPath) throws SVNException
getChildrenOfWorkingNode
in interface ISVNWCDb
SVNException
public void readChildren(java.io.File localAbsPath, java.util.Map<java.lang.String,ISVNWCDb.SVNWCDbInfo> children, java.util.Set<java.lang.String> conflicts) throws SVNException
readChildren
in interface ISVNWCDb
SVNException
public void readChildren(SVNWCDbRoot root, java.io.File localRelPath, java.util.Map<java.lang.String,ISVNWCDb.SVNWCDbInfo> children, java.util.Set<java.lang.String> conflicts) throws SVNException
SVNException
public java.util.Map<java.lang.String,ISVNWCDb.WCDbBaseInfo> getBaseChildrenMap(java.io.File localAbsPath, boolean fetchLocks) throws SVNException
getBaseChildrenMap
in interface ISVNWCDb
SVNException
public java.util.Map<java.lang.String,ISVNWCDb.WCDbBaseInfo> getBaseChildrenMap(SVNWCDbRoot wcRoot, java.io.File localRelPath, boolean fetchLocks) throws SVNException
getBaseChildrenMap
in interface ISVNWCDb
SVNException
public java.util.List<java.lang.String> readConflictVictims(java.io.File localAbsPath) throws SVNException
ISVNWCDb
In case of tree conflicts a victim doesn't have to be in the working copy.
This function will probably be removed.
readConflictVictims
in interface ISVNWCDb
SVNException
public java.util.List<SVNConflictDescription> readConflicts(java.io.File localAbsPath) throws SVNException
ISVNWCDb
Victim must be versioned or be part of a tree conflict.
Currently there can be just one property conflict recorded per victim
This function will probably be removed.
readConflicts
in interface ISVNWCDb
SVNException
public java.util.List<SVNWCConflictDescription17> readConflicts(java.io.File localAbsPath, boolean createTempFiles) throws SVNException
SVNException
public SVNSkel readConflict(java.io.File localAbsPath) throws SVNException
readConflict
in interface ISVNWCDb
SVNException
public SVNSkel readConflictInternal(SVNWCDbRoot wcRoot, java.io.File localRelPath) throws SVNException
SVNException
public ISVNWCDb.WCDbInfo readInfo(java.io.File localAbsPath, ISVNWCDb.WCDbInfo.InfoField... fields) throws SVNException
ISVNWCDb
For the node implied by LOCAL_ABSPATH from the local filesystem, return information in the provided OUT parameters. Each OUT parameter may be NULL, indicating that specific item is not requested.
The information returned comes from the BASE tree, as possibly modified by the WORKING and ACTUAL trees.
If there is no information about the node, then
SVNErrorCode.WC_PATH_NOT_FOUND
will be returned.
The OUT parameters, and their "not available" values are:
STATUS | n/a (always available) |
KIND | n/a (always available) |
REVISION | SVN_INVALID_REVNUM |
REPOS_RELPATH | NULL |
REPOS_ROOT_URL | NULL |
REPOS_UUID | NULL |
CHANGED_REV | SVN_INVALID_REVNUM |
CHANGED_DATE | 0 |
CHANGED_AUTHOR | NULL |
LAST_MOD_TIME | 0 |
DEPTH | svn_depth_unknown |
CHECKSUM | NULL |
TRANSLATED_SIZE | SVN_INVALID_FILESIZE |
TARGET | NULL |
CHANGELIST | NULL |
ORIGINAL_REPOS_RELPATH | NULL |
ORIGINAL_ROOT_URL | NULL |
ORIGINAL_UUID | NULL |
ORIGINAL_REVISION | SVN_INVALID_REVNUM |
TEXT_MOD | n/a (always available) |
PROPS_MOD | n/a (always available) |
BASE_SHADOWED | n/a (always available) |
CONFLICTED | FALSE |
LOCK | NULL |