Class SVNWCContext
java.lang.Object
org.tmatesoft.svn.core.internal.wc17.SVNWCContext
public class SVNWCContext
extends java.lang.Object
- Version:
- 1.4
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static interface
static class
static class
static class
private class
static class
static interface
static class
static class
(package private) static class
static enum
static class
static class
static class
static class
static class
static class
static class
static class
private static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static interface
class
static enum
static class
class
static enum
private static class
static class
protected static class
static class
static enum
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate java.util.List<SVNWCContext.CleanupHandler>
private boolean
static final byte[]
static java.lang.String
static java.lang.String
static java.lang.String
static java.lang.String
static java.lang.String
static final java.lang.String
static final java.lang.String
static java.lang.String
static java.lang.String
static java.lang.String
static java.lang.String
static final byte[]
static final byte[]
private ISVNWCDb
private java.util.Stack<ISVNEventHandler>
static final long
private SvnOperation<?>
static final java.lang.String
private static java.util.List<SVNStatusType>
static final int
static final java.lang.String
static final java.lang.String
static final java.lang.String
static final java.lang.String
static final java.lang.String
static final java.lang.String
static final int
static final java.lang.String
static final int
static final int
private static final java.lang.String
-
Constructor Summary
ConstructorsConstructorDescriptionSVNWCContext
(ISVNWCDb.SVNWCDbOpenMode mode, ISVNOptions config, boolean autoUpgrade, boolean enforceEmptyWQ, ISVNEventHandler eventHandler) SVNWCContext
(ISVNWCDb db, ISVNEventHandler eventHandler) SVNWCContext
(ISVNOptions config, ISVNEventHandler eventHandler) -
Method Summary
Modifier and TypeMethodDescriptionjava.io.File
acquireWriteLock
(java.io.File localAbspath, boolean lockAnchor, boolean returnLockRoot) java.io.File
acquireWriteLockForResolve
(java.io.File localAbsPath) void
addTreeConflict
(SVNWCConflictDescription17 conflict) private void
appendPropConflict
(java.io.OutputStream stream, SVNSkel propSkel) private SVNWCContext.MergePropStatusInfo
applySingleGenericPropChange
(SVNPropertyValue resultVal, boolean didMerge, SVNPropertyValue oldVal, SVNPropertyValue newVal, SVNPropertyValue workingVal) private SVNWCContext.MergePropStatusInfo
applySingleGenericPropChange
(SVNStatusType state, java.io.File localAbspath, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, boolean isDir, SVNProperties workingProps, java.lang.String propname, SVNPropertyValue baseVal, SVNPropertyValue oldVal, SVNPropertyValue newVal, ISVNConflictHandler conflictResolver, boolean dryRun) private SVNWCContext.MergePropStatusInfo
applySingleMergeinfoPropChange
(SVNStatusType state, java.io.File localAbspath, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, boolean isDir, SVNProperties workingProps, java.lang.String propname, SVNPropertyValue baseVal, SVNPropertyValue oldVal, SVNPropertyValue newVal, ISVNConflictHandler conflictResolver, boolean dryRun) private SVNWCContext.MergePropStatusInfo
applySingleMergeInfoPropChange
(SVNPropertyValue resultVal, boolean didMerge, SVNPropertyValue baseVal, SVNPropertyValue oldVal, SVNPropertyValue newVal, SVNPropertyValue workingVal) (package private) SVNWCContext.MergePropStatusInfo
applySinglePropAdd
(SVNPropertyValue resultVal, boolean didMerge, java.lang.String propName, SVNPropertyValue pristineVal, SVNPropertyValue newVal, SVNPropertyValue workingVal) (package private) SVNWCContext.MergePropStatusInfo
applySinglePropAdd
(SVNStatusType state, java.io.File localAbspath, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, boolean isDir, SVNProperties workingProps, java.lang.String propname, SVNPropertyValue baseVal, SVNPropertyValue toVal, ISVNConflictHandler conflictResolver, boolean dryRun) (package private) SVNWCContext.MergePropStatusInfo
applySinglePropChange
(SVNPropertyValue resultVal, boolean didMerge, java.lang.String propName, SVNPropertyValue baseVal, SVNPropertyValue oldVal, SVNPropertyValue newVal, SVNPropertyValue workingVal) (package private) SVNWCContext.MergePropStatusInfo
applySinglePropChange
(SVNStatusType state, java.io.File localAbspath, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, boolean isDir, SVNProperties workingProps, java.lang.String propname, SVNPropertyValue baseVal, SVNPropertyValue oldVal, SVNPropertyValue newVal, ISVNConflictHandler conflictResolver, boolean dryRun) (package private) SVNWCContext.MergePropStatusInfo
applySinglePropDelete
(SVNPropertyValue resultVal, boolean didMerge, SVNPropertyValue baseVal, SVNPropertyValue oldVal, SVNPropertyValue workingVal) (package private) SVNWCContext.MergePropStatusInfo
applySinglePropDelete
(SVNStatusType state, java.io.File localAbspath, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, boolean isDir, SVNProperties workingProps, java.lang.String propname, SVNPropertyValue baseVal, SVNPropertyValue oldVal, ISVNConflictHandler conflictResolver, boolean dryRun) private static boolean
arePropsEqual
(SVNPropertyValue propertyValue1, SVNPropertyValue propertyValue2) private boolean
arraysEqual
(byte[] array1, byte[] array2, int size) private boolean
attemptDeletion
(java.io.File parentDir, java.io.File baseName) private SVNWCContext.MergeInfo
attemptTrivialMerge
(SVNWCContext.MergeInfo info, java.io.File leftAbspath, java.io.File rightAbspath, java.io.File targetAbspath, java.io.File detranslatedTargetAbspath, boolean dryRun) void
canonicalizeURLs
(java.io.File path, SVNExternalsStore externalsStore, boolean omitDefaultPort) void
checkForObstructions
(java.io.File localAbsPath, boolean noWcRootCheck) checkSpecialPath
(java.io.File localAbspath) int
checkWC
(java.io.File localAbsPath) private int
checkWC
(java.io.File localAbsPath, boolean check) checkWCRoot
(java.io.File localAbspath, boolean fetchSwitched) void
cleanup()
void
close()
private SVNPropertyValue
combineForkedMergeInfoProps
(SVNPropertyValue fromPropVal, SVNPropertyValue workingPropVal, SVNPropertyValue toPropVal) java.util.List<SVNWCContext.CommittableExternalInfo>
committableExternalsBelow
(java.util.List<SVNWCContext.CommittableExternalInfo> externals, java.io.File localAbsPath, SVNDepth depth) boolean
compareAndVerify
(java.io.File localAbsPath, java.io.File pristineFile, boolean hasProps, boolean propMods, boolean exactComparison) conflictCreateMarker
(SVNSkel conflictSkel, java.io.File localAbsPath) (package private) void
conflictSkelAddPropConflict
(SVNSkel skel, java.lang.String propName, SVNPropertyValue baseVal, SVNPropertyValue mineVal, SVNPropertyValue toVal, SVNPropertyValue fromVal) private SVNNodeKind
convertDbKindToNodeKind
(SVNNodeKind dbKind, ISVNWCDb.SVNWCDbStatus dbStatus, boolean showHidden) private ISvnMerger
private DefaultSvnMerger
java.io.File
createPrejFile
(java.io.File localAbspath, SVNSkel conflictSkel) private void
cropChildren
(java.io.File localAbspath, SVNDepth depth) void
void
deleteTreeConflict
(java.io.File victimAbsPath) private void
destroyAdm
(java.io.File dirAbspath) private java.io.File
detranslateWCFile
(java.io.File targetAbspath, boolean forceCopy, SVNProperties oldActualProps, SVNProperties propDiff, java.io.File sourceAbspath) private void
dispatchWorkItem
(java.io.File wcRootAbspath, SVNSkel workItem) private boolean
doTextMerge
(ISvnMerger customMerger, java.io.File resultFile, java.io.File targetAbsPath, java.io.File detranslatedTargetAbspath, java.io.File leftAbspath, java.io.File rightAbspath, java.lang.String targetLabel, java.lang.String leftLabel, java.lang.String rightLabel, SVNDiffOptions options, SVNDiffConflictChoiceStyle style) void
private SVNWCContext.MergeInfo
evalConflictResolverResult
(SVNConflictChoice choice, java.io.File wriAbspath, java.io.File leftAbspath, java.io.File rightAbspath, java.io.File targetAbspath, java.io.File copyfromText, java.io.File mergedFile, java.io.File detranslatedTarget, SVNDiffOptions options) evalTextConflictFuncResult
(java.io.File localAbsPath, SVNConflictChoice choice, java.io.File leftAbsPath, java.io.File rightAbsPath, java.io.File mergedAbsPath, java.io.File detranslatedTarget) void
exclude
(java.io.File localAbspath) private java.util.Map<java.lang.String,
byte[]> expandKeywords
(java.io.File localAbsPath, java.io.File wriAbspath, java.lang.String keywordsList, boolean forNormalization) private java.lang.String
generateConflictMessage
(java.lang.String propname, SVNPropertyValue original, SVNPropertyValue mine, SVNPropertyValue incoming, SVNPropertyValue incomingBase) private boolean
generatePropConflict
(java.io.File localAbsPath, SVNOperation operation, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, java.lang.String propName, SVNPropertyValue baseVal, SVNPropertyValue workingVal, SVNPropertyValue incomingOldVal, SVNPropertyValue incomingNewVal, ISVNConflictHandler conflictHandler) private SVNProperties
getActualProperties
(java.io.File localAbsPath) getActualProps
(java.io.File localAbspath) java.lang.String
getActualTarget
(java.io.File path) void
getAndRecordFileInfo
(java.io.File localAbspath, boolean ignoreError) java.lang.String
getCharset
(java.io.File path) java.util.List<java.io.File>
getChildrenOfWorkingNode
(java.io.File dirAbsPath, boolean showHidden) getConflicted
(java.io.File localAbsPath, boolean isTextNeed, boolean isPropNeed, boolean isTreeNeed) getDb()
getEntryLocation
(java.io.File localAbsPath, SVNRevision pegRevisionKind, boolean fetchRevnum) getEolStyle
(java.io.File localAbsPath) java.util.Map<java.lang.String,
byte[]> getKeyWords
(java.io.File localAbsPath, java.lang.String forceList) getNodeBase
(java.io.File localAbsPath, boolean ignoreNonExisting, boolean showHidden) long
getNodeBaseRev
(java.io.File local_abspath) getNodeChangedInfo
(java.io.File path) java.util.List<java.io.File>
getNodeChildren
(java.io.File dirAbsPath, boolean showHidden) long
getNodeCommitBaseRev
(java.io.File local_abspath) getNodeCopyFromInfo
(java.io.File localAbsPath, SVNWCContext.NodeCopyFromField... fields) java.io.File
getNodeDeletedAncestor
(java.io.File localAbsPath) getNodeDepth
(java.io.File localAbsPath) getNodeLock
(java.io.File localAbsPath) getNodeOrigin
(java.io.File localAbsPath, boolean scanDeleted, StructureFields.NodeOriginInfo... fields) getNodePresence
(java.io.File localAbsPath, boolean baseOnly) getNodeReposInfo
(java.io.File localAbspath) java.io.File
getNodeReposRelPath
(java.io.File localAbsPath) getNodeScheduleInternal
(java.io.File localAbsPath, boolean schedule, boolean copied) getNodeUrl
(java.io.File path) (package private) java.io.File
getPrejfileAbspath
(java.io.File localAbspath) getPristineContents
(java.io.File localAbspath, boolean openStream, boolean getPath) getPristineProps
(java.io.File localAbspath) getPropDiffs
(java.io.File localAbsPath) private SVNProperties
getProperties
(java.io.File localAbsPath, java.lang.String name) java.lang.String
getProperty
(java.io.File localAbsPath, java.lang.String name) getPropertyValue
(java.io.File localAbsPath, java.lang.String name) private java.io.File
getRelativePath
(java.io.File localAbsPath) private static java.io.File
getRelativePath
(SVNWCDb db, java.io.File localAbspath) long
getRevisionNumber
(SVNRevision revision, long[] latestRevisionNumber, SVNRepository repository, java.io.File path) java.io.File
getTranslatedFile
(java.io.File src, java.io.File versionedAbspath, boolean toNormalFormat, boolean forceEOLRepair, boolean useGlobalTmp, boolean forceCopy, boolean safelyEncode) When expanding working copy file (which is already expanded, we just have to update EOLs, keywords, etc) One has to pass safelyEncode argument set to true as for this case we have to carefully update necessary parts of the file taking its encoding into account.java.io.InputStream
getTranslatedStream
(java.io.File localAbspath, java.io.File versionedAbspath, boolean translateToNormalForm, boolean repairEOL) getTranslateInfo
(java.io.File localAbspath, boolean fetchEolStyle, boolean fetchCharset, boolean fetchKeywords, boolean fetchSpecial) getTranslateInfo
(java.io.File localAbspath, SVNProperties props, boolean forNormalization, boolean fetchEolStyle, boolean fetchCharset, boolean fetchKeywords, boolean fetchSpecial) getTreeConflict
(java.io.File victimAbspath) getUrlFromPath
(java.io.File localAbsPath) hasLocalMods
(java.io.File localAbspath, java.io.File anchorAbspath) static boolean
hasMagicProperty
(SVNProperties properties) (package private) SVNWCContext.ConflictMarkersInfo
initConflictMarkers
(java.lang.String targetLabel, java.lang.String leftLabel, java.lang.String rightLabel) void
initializeWC
(java.io.File localAbspath, SVNURL url, SVNURL repositoryRoot, java.lang.String uuid, long revision, SVNDepth depth, int targetWorkingCopyFormat) private void
initWC
(java.io.File localAbspath, java.io.File reposRelpath, SVNURL repositoryRoot, java.lang.String uuid, long revNumber, SVNDepth depth, int workingCopyFormat) void
invokeConflictResolver
(java.io.File localAbsPath, SVNSkel conflictSkel, ISVNConflictHandler conflictHandler, ISVNCanceller canceller) static boolean
isAdminDirectory
(java.lang.String name) boolean
isChangelistMatch
(java.io.File localAbsPath, java.util.Collection<java.lang.String> changelistsSet) private boolean
isChildDisjoint
(java.io.File localAbspath) static boolean
private boolean
boolean
isFileExternal
(java.io.File path) private boolean
private boolean
isMarkedAsBinary
(java.io.File localAbsPath) boolean
isNodeAdded
(java.io.File path) boolean
isNodeReplaced
(java.io.File path) Equivalent to the old notion of "entry->schedule == schedule_replace"boolean
isNodeStatusDeleted
(java.io.File localAbsPath) private static boolean
boolean
isPropsModified
(java.io.File localAbspath) private boolean
isSameContents
(java.io.File file1, java.io.File file2) private boolean
isSameContents
(java.io.InputStream stream1, java.io.InputStream stream2) private static boolean
isSingleWorkItem
(SVNSkel workItem) boolean
isSpecial
(java.io.File path) boolean
isTextModified
(java.io.File localAbsPath, boolean exactComparison) private boolean
isTranslationRequired
(SVNWCContext.SVNEolStyle style, byte[] eol, java.lang.String charset, java.util.Map<java.lang.String, byte[]> keywords, boolean special, boolean force_eol_check) private static boolean
boolean
matchesChangelist
(java.io.File localAbspath, java.util.Collection<java.lang.String> changelists) private boolean
maybeGeneratePropConflict
(java.io.File localAbspath, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, boolean isDir, java.lang.String propname, SVNProperties workingProps, SVNPropertyValue oldVal, SVNPropertyValue newVal, SVNPropertyValue baseVal, SVNPropertyValue workingVal, ISVNConflictHandler conflictResolver, boolean dryRun) private SVNPropertyValue
maybePropValue
(java.lang.String propname, SVNSkel child) private SVNWCContext.MergeInfo
maybeResolveConflicts
(java.io.File leftAbspath, java.io.File rightAbspath, java.io.File targetAbspath, java.io.File copyfromText, java.lang.String leftLabel, java.lang.String rightLabel, java.lang.String targetLabel, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, java.io.File resultTarget, java.io.File detranslatedTarget, SVNPropertyValue mimeprop, SVNDiffOptions options, ISVNConflictHandler conflictResolver) private boolean
maybeSetExecutable
(java.io.File localAbspath) private boolean
maybeSetReadOnly
(java.io.File localAbspath) private java.io.File
maybeUpdateTargetEols
(java.io.File oldTargetAbspath, SVNProperties propDiff) merge
(SVNSkel workItems, SVNSkel conflictSkel, java.io.File leftAbspath, java.io.File rightAbspath, java.io.File targetAbspath, java.io.File wriAbspath, java.lang.String leftLabel, java.lang.String rightLabel, java.lang.String targetLabel, SVNProperties oldActualProps, boolean dryRun, SVNDiffOptions options, SVNProperties propDiff) private SVNWCContext.MergeInfo
mergeBinaryFile
(SVNWCContext.MergeInfo info, java.io.File leftAbspath, java.io.File rightAbspath, java.io.File targetAbspath, java.lang.String leftLabel, java.lang.String rightLabel, java.lang.String targetLabel, java.io.File detranslatedTargetAbspath, boolean dryRun) mergeProperties
(java.io.File localAbsPath, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, SVNProperties baseProperties, SVNProperties propChanges, boolean dryRun, ISVNConflictHandler conflictResolver) mergeProperties2
(SVNWCContext.MergePropertiesInfo mergeInfo, java.io.File localAbsPath, ISVNWCDb.SVNWCDbKind kind, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, SVNProperties serverBaseProperties, SVNProperties pristineProperties, SVNProperties actualProperties, SVNProperties propChanges, boolean baseMerge, boolean dryRun, ISVNConflictHandler conflictResolver) mergeProperties3
(SVNWCContext.MergePropertiesInfo mergePropertiesInfo, java.io.File localAbsPath, SVNProperties serverBaseProps, SVNProperties pristineProps, SVNProperties actualProps, SVNProperties propChanges) mergeText
(java.io.File left, java.io.File right, java.io.File target, java.lang.String leftLabel, java.lang.String rightLabel, java.lang.String targetLabel, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, boolean dryRun, SVNDiffOptions options, SVNProperties propDiff) private SVNWCContext.MergeInfo
mergeTextFile
(SVNWCContext.MergeInfo info, ISvnMerger customMerger, java.io.File leftAbspath, java.io.File rightAbspath, java.io.File targetAbspath, java.io.File wriAbspath, java.lang.String leftLabel, java.lang.String rightLabel, java.lang.String targetLabel, boolean dryRun, SVNDiffOptions options, java.io.File copyfromText, java.io.File detranslatedTargetAbspath, SVNPropertyValue mimeprop) private java.lang.String
messageFromSkel
(SVNSkel skel) void
nodeWalkChildren
(java.io.File localAbspath, SVNWCContext.ISVNWCNodeHandler nodeHandler, boolean showHidden, SVNDepth walkDepth, java.util.Collection<java.lang.String> changelists) nodeWasMovedAway
(java.io.File localAbsPath) nodeWasMovedHere
(java.io.File localAbsPath) java.io.File
obtainAnchorPath
(java.io.File localAbspath, boolean lockAnchor, boolean returnLockRoot) static SVNWCContext.UniqueFileInfo
openUniqueFile
(java.io.File dirPath, boolean openStream) openWritableBase
(java.io.File localAbspath, boolean md5Checksum, boolean sha1Checksum) void
preservePreMergeFiles
(java.io.File leftAbspath, java.io.File rightAbspath, java.io.File targetAbspath, java.lang.String leftLabel, java.lang.String rightLabel, java.lang.String targetLabel, java.io.File detranslatedTargetAbspath) void
pushEventHandler
(ISVNEventHandler handler) readKind
(java.io.File localAbsPath, boolean showHidden) static java.io.InputStream
readSpecialFile
(java.io.File localAbsPath) private void
recursiveResolveConflict
(java.io.File localAbsPath, SVNDepth depth, boolean resolveText, java.lang.String resolveProps, boolean resolveTree, SVNConflictChoice conflictChoice, ISVNConflictHandler conflictHandler) void
void
releaseWriteLock
(java.io.File localAbspath) private SVNWCContext.RemoveArtifactInfo
removeArtifactFileIfExists
(java.io.File wriAbsPath, java.io.File artifactFileAbsPath) void
removeBaseNode
(java.io.File localAbspath) void
removeFromRevisionControl
(java.io.File localAbspath, boolean destroyWf, boolean instantError) boolean
resolveConflictOnNode
(java.io.File localAbsPath, boolean resolveText, boolean resolveProps, SVNConflictChoice conflictChoice) void
resolvedConflict
(java.io.File localAbsPath, SVNDepth depth, boolean resolveText, java.lang.String resolveProps, boolean resolveTree, SVNConflictChoice conflictChoice) private void
resolveOneConflict
(java.io.File localAbsPath, boolean resolveText, java.lang.String resolveProps, boolean resolveTree, SVNConflictChoice conflictChoice) private boolean
resolvePropConflictOnNode
(java.io.File localAbsPath, java.lang.String conflictedPropName, SVNConflictChoice conflictChoice, java.io.File mergedFile) resolveTextConflict
(java.io.File localAbsPath, SVNOperation operation, java.io.File leftAbsPath, java.io.File rightAbsPath, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, java.io.File resultTarget, java.io.File detranslatedTarget, ISVNConflictHandler conflictHandler) private boolean
resolveTextConflictOnNode
(java.io.File localAbsPath, SVNConflictChoice conflictChoice, java.io.File mergedFile) private boolean
resolveTreeConflictOnNode
(java.io.File localAbsPath, SVNConflictChoice conflictChoice) private SVNSkel
saveMergeResult
(java.io.File versionedAbspath, java.io.File source) private static SVNSkel
saveMergeResult
(ISVNWCDb db, java.io.File localAbsPath, java.io.File sourceAbsPath) void
setEventHandler
(ISVNEventHandler handler) void
setOperation
(SvnOperation<?> operation) (package private) SVNStatusType
setPropMergeState
(SVNStatusType state, SVNStatusType newValue) void
setSqliteJournalMode
(org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalMode sqliteJournalMode) void
setSqliteTemporaryDbInMemory
(boolean temporaryDbInMemory) private SVNConflictDescription
setupTextConflictDesc
(java.io.File leftAbspath, java.io.File rightAbspath, java.io.File targetAbspath, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, java.io.File resultTarget, java.io.File detranslatedTarget, SVNPropertyValue mimeprop, boolean isBinary) private SVNConflictDescription
setupTreeConflictDesc
(java.io.File localAbsPath, SVNOperation operation, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, SVNConflictReason localChange, SVNConflictAction incomingChange) void
syncFileFlags
(java.io.File localAbspath) private void
walkerHelper
(java.io.File dirAbspath, SVNWCContext.ISVNWCNodeHandler nodeHandler, boolean showHidden, SVNDepth depth, java.util.Collection<java.lang.String> changelists) wqBuildBaseRemove
(java.io.File localAbspath, boolean keepNotPresent) wqBuildBaseRemove
(java.io.File localAbspath, long notPresentRevision, ISVNWCDb.SVNWCDbKind notPresentKind) static SVNSkel
wqBuildBaseRemove
(SVNWCDb db, java.io.File localAbspath, long notPresentRevision, ISVNWCDb.SVNWCDbKind notPresentKind) wqBuildDirInstall
(java.io.File localAbsPath) static SVNSkel
wqBuildDirInstall
(SVNWCDb db, java.io.File localAbsPath) static SVNSkel
wqBuildDirRemove
(SVNWCDb db, java.io.File wriAbspath, java.io.File localAbspath, boolean recursive) wqBuildFileCommit
(java.io.File localAbspath, boolean propsMods) wqBuildFileCopyTranslated
(java.io.File localAbspath, java.io.File srcAbspath, java.io.File dstAbspath) static SVNSkel
wqBuildFileCopyTranslated
(SVNWCDb db, java.io.File localAbspath, java.io.File srcAbspath, java.io.File dstAbspath) wqBuildFileInstall
(java.io.File localAbspath, java.io.File sourceAbspath, boolean useCommitTimes, boolean recordFileinfo) static SVNSkel
wqBuildFileInstall
(SVNWCDb db, java.io.File localAbspath, java.io.File sourceAbspath, boolean useCommitTimes, boolean recordFileinfo) wqBuildFileMove
(java.io.File srcAbspath, java.io.File dstAbspath) wqBuildFileMove
(java.io.File anchorPath, java.io.File srcAbspath, java.io.File dstAbspath) wqBuildFileRemove
(java.io.File wriAbsPath, java.io.File localAbspath) static SVNSkel
wqBuildFileRemove
(SVNWCDb db, java.io.File wriAbspath, java.io.File localAbspath) wqBuildPrejInstall
(java.io.File localAbspath, SVNSkel conflictSkel) static SVNSkel
wqBuildPrejInstall
(ISVNWCDb db, java.io.File localAbspath, SVNSkel conflictSkel) wqBuildRecordFileinfo
(java.io.File localAbspath, SVNDate setTime) wqBuildSetPropertyConflictMarkerTemp
(java.io.File localAbspath, java.io.File prejFile) wqBuildSetTextConflictMarkersTmp
(java.io.File localAbspath, java.io.File old, java.io.File neo, java.io.File wrk) wqBuildSyncFileFlags
(java.io.File localAbspath) static SVNSkel
wqBuildSyncFileFlags
(SVNWCDb db, java.io.File localAbspath) static SVNSkel
void
wqRun
(java.io.File dirAbspath) void
writeCheck
(java.io.File localAbspath) static void
writeCheck
(ISVNWCDb db, java.io.File localAbspath) private java.io.File
writeUnique
(java.io.File path, byte[] value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
CONFLICT_OP_UPDATE
public static java.lang.String CONFLICT_OP_UPDATE -
CONFLICT_OP_SWITCH
public static java.lang.String CONFLICT_OP_SWITCH -
CONFLICT_OP_MERGE
public static java.lang.String CONFLICT_OP_MERGE -
CONFLICT_OP_PATCH
public static java.lang.String CONFLICT_OP_PATCH -
CONFLICT_KIND_TEXT
public static java.lang.String CONFLICT_KIND_TEXT -
CONFLICT_KIND_PROP
public static java.lang.String CONFLICT_KIND_PROP -
CONFLICT_KIND_TREE
public static java.lang.String CONFLICT_KIND_TREE -
CONFLICT_KIND_REJECT
public static java.lang.String CONFLICT_KIND_REJECT -
CONFLICT_KIND_OBSTRUCTED
public static java.lang.String CONFLICT_KIND_OBSTRUCTED -
STATUS_ORDERING
-
INVALID_REVNUM
public static final long INVALID_REVNUM- See Also:
-
STREAM_CHUNK_SIZE
public static final int STREAM_CHUNK_SIZE- See Also:
-
THIS_DIR_PREJ
public static final java.lang.String THIS_DIR_PREJ- See Also:
-
PROP_REJ_EXT
public static final java.lang.String PROP_REJ_EXT- See Also:
-
CONFLICT_LOCAL_LABEL
public static final java.lang.String CONFLICT_LOCAL_LABEL- See Also:
-
CONFLICT_LATEST_LABEL
public static final java.lang.String CONFLICT_LATEST_LABEL- See Also:
-
CONFLICT_START
public static final byte[] CONFLICT_START -
CONFLICT_END
public static final byte[] CONFLICT_END -
CONFLICT_SEPARATOR
public static final byte[] CONFLICT_SEPARATOR -
WC_NG_VERSION
public static final int WC_NG_VERSION- See Also:
-
WC_WCPROPS_MANY_FILES_VERSION
public static final int WC_WCPROPS_MANY_FILES_VERSION- See Also:
-
WC_WCPROPS_LOST
public static final int WC_WCPROPS_LOST- See Also:
-
WC_ADM_FORMAT
public static final java.lang.String WC_ADM_FORMAT- See Also:
-
WC_ADM_ENTRIES
public static final java.lang.String WC_ADM_ENTRIES- See Also:
-
WC_ADM_TMP
public static final java.lang.String WC_ADM_TMP- See Also:
-
WC_ADM_PRISTINE
public static final java.lang.String WC_ADM_PRISTINE- See Also:
-
WC_ADM_NONEXISTENT_PATH
public static final java.lang.String WC_ADM_NONEXISTENT_PATH- See Also:
-
WC_NON_ENTRIES_STRING
public static final java.lang.String WC_NON_ENTRIES_STRING- See Also:
-
WC17_SUPPORT_ENABLED_PROPERTY
private static final java.lang.String WC17_SUPPORT_ENABLED_PROPERTY- See Also:
-
db
-
closeDb
private boolean closeDb -
eventHandler
-
cleanupHandlers
-
operation
-
-
Constructor Details
-
SVNWCContext
-
SVNWCContext
public SVNWCContext(ISVNWCDb.SVNWCDbOpenMode mode, ISVNOptions config, boolean autoUpgrade, boolean enforceEmptyWQ, ISVNEventHandler eventHandler) -
SVNWCContext
-
-
Method Details
-
hasLocalMods
public SVNWCContext.TreeLocalModsInfo hasLocalMods(java.io.File localAbspath, java.io.File anchorAbspath) throws SVNException - Throws:
SVNException
-
isAdminDirectory
public static boolean isAdminDirectory(java.lang.String name) -
isWC17SupportEnabled
private static boolean isWC17SupportEnabled() -
setOperation
-
getEventHandler
-
pushEventHandler
-
popEventHandler
public void popEventHandler() -
setEventHandler
-
close
public void close() -
registerCleanupHandler
-
cleanup
- Throws:
SVNException
-
getDb
-
checkCancelled
- Throws:
SVNCancelException
-
getOptions
-
readKind
- Throws:
SVNException
-
isNodeAdded
- Throws:
SVNException
-
isNodeReplaced
Equivalent to the old notion of "entry->schedule == schedule_replace"- Throws:
SVNException
-
getRevisionNumber
public long getRevisionNumber(SVNRevision revision, long[] latestRevisionNumber, SVNRepository repository, java.io.File path) throws SVNException - Throws:
SVNException
-
getNodeChangedInfo
- Throws:
SVNException
-
getNodeCommitBaseRev
- Throws:
SVNException
-
getNodeBaseRev
- Throws:
SVNException
-
getNodeScheduleInternal
public SVNWCContext.ScheduleInternalInfo getNodeScheduleInternal(java.io.File localAbsPath, boolean schedule, boolean copied) throws SVNException - Throws:
SVNException
-
isTextModified
public boolean isTextModified(java.io.File localAbsPath, boolean exactComparison) throws SVNException - Throws:
SVNException
-
compareAndVerify
public boolean compareAndVerify(java.io.File localAbsPath, java.io.File pristineFile, boolean hasProps, boolean propMods, boolean exactComparison) throws SVNException - Throws:
SVNException
-
isGlobalCharsetSpecified
private boolean isGlobalCharsetSpecified() -
getPristineContents
public SVNWCContext.PristineContentsInfo getPristineContents(java.io.File localAbspath, boolean openStream, boolean getPath) throws SVNException - Throws:
SVNException
-
isSameContents
- Throws:
SVNException
-
isSameContents
private boolean isSameContents(java.io.InputStream stream1, java.io.InputStream stream2) throws SVNException - Throws:
SVNException
-
arraysEqual
private boolean arraysEqual(byte[] array1, byte[] array2, int size) -
readSpecialFile
- Throws:
SVNException
-
isTranslationRequired
private boolean isTranslationRequired(SVNWCContext.SVNEolStyle style, byte[] eol, java.lang.String charset, java.util.Map<java.lang.String, byte[]> keywords, boolean special, boolean force_eol_check) -
getCharset
- Throws:
SVNException
-
isSpecial
- Throws:
SVNException
-
getEolStyle
- Throws:
SVNException
-
getKeyWords
public java.util.Map<java.lang.String,byte[]> getKeyWords(java.io.File localAbsPath, java.lang.String forceList) throws SVNException - Throws:
SVNException
-
getTranslateInfo
public SVNWCContext.TranslateInfo getTranslateInfo(java.io.File localAbspath, boolean fetchEolStyle, boolean fetchCharset, boolean fetchKeywords, boolean fetchSpecial) throws SVNException - Throws:
SVNException
-
getTranslateInfo
public SVNWCContext.TranslateInfo getTranslateInfo(java.io.File localAbspath, SVNProperties props, boolean forNormalization, boolean fetchEolStyle, boolean fetchCharset, boolean fetchKeywords, boolean fetchSpecial) throws SVNException - Throws:
SVNException
-
expandKeywords
private java.util.Map<java.lang.String,byte[]> expandKeywords(java.io.File localAbsPath, java.io.File wriAbspath, java.lang.String keywordsList, boolean forNormalization) throws SVNException - Throws:
SVNException
-
isFileExternal
- Throws:
SVNException
-
getNodeUrl
- Throws:
SVNException
-
getConflicted
public SVNWCContext.ConflictInfo getConflicted(java.io.File localAbsPath, boolean isTextNeed, boolean isPropNeed, boolean isTreeNeed) throws SVNException - Throws:
SVNException
-
getProperty
public java.lang.String getProperty(java.io.File localAbsPath, java.lang.String name) throws SVNException - Throws:
SVNException
-
getPropertyValue
public SVNPropertyValue getPropertyValue(java.io.File localAbsPath, java.lang.String name) throws SVNException - Throws:
SVNException
-
getProperties
private SVNProperties getProperties(java.io.File localAbsPath, java.lang.String name) throws SVNException - Throws:
SVNException
-
getActualProperties
- Throws:
SVNException
-
getUrlFromPath
- Throws:
SVNException
-
getEntryLocation
public SVNWCContext.EntryLocationInfo getEntryLocation(java.io.File localAbsPath, SVNRevision pegRevisionKind, boolean fetchRevnum) throws SVNException - Throws:
SVNException
-
getNodeCopyFromInfo
public SVNWCContext.NodeCopyFromInfo getNodeCopyFromInfo(java.io.File localAbsPath, SVNWCContext.NodeCopyFromField... fields) throws SVNException - Throws:
SVNException
-
getNodeOrigin
public Structure<StructureFields.NodeOriginInfo> getNodeOrigin(java.io.File localAbsPath, boolean scanDeleted, StructureFields.NodeOriginInfo... fields) throws SVNException - Throws:
SVNException
-
isErrorAccess
-
isPropsModified
- Throws:
SVNException
-
nodeWalkChildren
public void nodeWalkChildren(java.io.File localAbspath, SVNWCContext.ISVNWCNodeHandler nodeHandler, boolean showHidden, SVNDepth walkDepth, java.util.Collection<java.lang.String> changelists) throws SVNException - Throws:
SVNException
-
matchesChangelist
public boolean matchesChangelist(java.io.File localAbspath, java.util.Collection<java.lang.String> changelists) -
walkerHelper
private void walkerHelper(java.io.File dirAbspath, SVNWCContext.ISVNWCNodeHandler nodeHandler, boolean showHidden, SVNDepth depth, java.util.Collection<java.lang.String> changelists) throws SVNException - Throws:
SVNException
-
acquireWriteLock
public java.io.File acquireWriteLock(java.io.File localAbspath, boolean lockAnchor, boolean returnLockRoot) throws SVNException - Throws:
SVNException
-
obtainAnchorPath
public java.io.File obtainAnchorPath(java.io.File localAbspath, boolean lockAnchor, boolean returnLockRoot) throws SVNException - Throws:
SVNException
-
isNotCurrentWc
-
isChildDisjoint
- Throws:
SVNException
-
releaseWriteLock
- Throws:
SVNException
-
checkWCRoot
public SVNWCContext.CheckWCRootInfo checkWCRoot(java.io.File localAbspath, boolean fetchSwitched) throws SVNException - Throws:
SVNException
-
exclude
- Throws:
SVNException
-
checkSpecialPath
-
removeFromRevisionControl
public void removeFromRevisionControl(java.io.File localAbspath, boolean destroyWf, boolean instantError) throws SVNException - Throws:
SVNException
-
destroyAdm
- Throws:
SVNException
-
cropTree
- Throws:
SVNException
-
cropChildren
- Throws:
SVNException
-
getNodeReposInfo
public SVNWCContext.SVNWCNodeReposInfo getNodeReposInfo(java.io.File localAbspath) throws SVNException - Throws:
SVNException
-
getTreeConflict
- Throws:
SVNException
-
writeCheck
- Throws:
SVNException
-
writeCheck
- Throws:
SVNException
-
getPristineProps
- Throws:
SVNException
-
getActualProps
- Throws:
SVNException
-
mergeProperties
public SVNWCContext.MergePropertiesInfo mergeProperties(java.io.File localAbsPath, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, SVNProperties baseProperties, SVNProperties propChanges, boolean dryRun, ISVNConflictHandler conflictResolver) throws SVNException - Throws:
SVNException
-
mergeProperties2
public SVNWCContext.MergePropertiesInfo mergeProperties2(SVNWCContext.MergePropertiesInfo mergeInfo, java.io.File localAbsPath, ISVNWCDb.SVNWCDbKind kind, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, SVNProperties serverBaseProperties, SVNProperties pristineProperties, SVNProperties actualProperties, SVNProperties propChanges, boolean baseMerge, boolean dryRun, ISVNConflictHandler conflictResolver) throws SVNException - Throws:
SVNException
-
mergeProperties3
public SVNWCContext.MergePropertiesInfo mergeProperties3(SVNWCContext.MergePropertiesInfo mergePropertiesInfo, java.io.File localAbsPath, SVNProperties serverBaseProps, SVNProperties pristineProps, SVNProperties actualProps, SVNProperties propChanges) throws SVNException - Throws:
SVNException
-
createCustomMerger
-
createDefaultMerger
-
getPrejfileAbspath
- Throws:
SVNException
-
conflictSkelAddPropConflict
void conflictSkelAddPropConflict(SVNSkel skel, java.lang.String propName, SVNPropertyValue baseVal, SVNPropertyValue mineVal, SVNPropertyValue toVal, SVNPropertyValue fromVal) throws SVNException - Throws:
SVNException
-
setPropMergeState
-
applySinglePropAdd
SVNWCContext.MergePropStatusInfo applySinglePropAdd(SVNPropertyValue resultVal, boolean didMerge, java.lang.String propName, SVNPropertyValue pristineVal, SVNPropertyValue newVal, SVNPropertyValue workingVal) throws SVNException - Throws:
SVNException
-
applySinglePropAdd
SVNWCContext.MergePropStatusInfo applySinglePropAdd(SVNStatusType state, java.io.File localAbspath, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, boolean isDir, SVNProperties workingProps, java.lang.String propname, SVNPropertyValue baseVal, SVNPropertyValue toVal, ISVNConflictHandler conflictResolver, boolean dryRun) throws SVNException - Throws:
SVNException
-
maybeGeneratePropConflict
private boolean maybeGeneratePropConflict(java.io.File localAbspath, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, boolean isDir, java.lang.String propname, SVNProperties workingProps, SVNPropertyValue oldVal, SVNPropertyValue newVal, SVNPropertyValue baseVal, SVNPropertyValue workingVal, ISVNConflictHandler conflictResolver, boolean dryRun) throws SVNException - Throws:
SVNException
-
writeUnique
- Throws:
SVNException
-
applySinglePropDelete
SVNWCContext.MergePropStatusInfo applySinglePropDelete(SVNPropertyValue resultVal, boolean didMerge, SVNPropertyValue baseVal, SVNPropertyValue oldVal, SVNPropertyValue workingVal) -
applySinglePropDelete
SVNWCContext.MergePropStatusInfo applySinglePropDelete(SVNStatusType state, java.io.File localAbspath, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, boolean isDir, SVNProperties workingProps, java.lang.String propname, SVNPropertyValue baseVal, SVNPropertyValue oldVal, ISVNConflictHandler conflictResolver, boolean dryRun) throws SVNException - Throws:
SVNException
-
applySinglePropChange
SVNWCContext.MergePropStatusInfo applySinglePropChange(SVNPropertyValue resultVal, boolean didMerge, java.lang.String propName, SVNPropertyValue baseVal, SVNPropertyValue oldVal, SVNPropertyValue newVal, SVNPropertyValue workingVal) throws SVNException - Throws:
SVNException
-
applySinglePropChange
SVNWCContext.MergePropStatusInfo applySinglePropChange(SVNStatusType state, java.io.File localAbspath, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, boolean isDir, SVNProperties workingProps, java.lang.String propname, SVNPropertyValue baseVal, SVNPropertyValue oldVal, SVNPropertyValue newVal, ISVNConflictHandler conflictResolver, boolean dryRun) throws SVNException - Throws:
SVNException
-
applySingleGenericPropChange
private SVNWCContext.MergePropStatusInfo applySingleGenericPropChange(SVNPropertyValue resultVal, boolean didMerge, SVNPropertyValue oldVal, SVNPropertyValue newVal, SVNPropertyValue workingVal) -
applySingleGenericPropChange
private SVNWCContext.MergePropStatusInfo applySingleGenericPropChange(SVNStatusType state, java.io.File localAbspath, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, boolean isDir, SVNProperties workingProps, java.lang.String propname, SVNPropertyValue baseVal, SVNPropertyValue oldVal, SVNPropertyValue newVal, ISVNConflictHandler conflictResolver, boolean dryRun) throws SVNException - Throws:
SVNException
-
applySingleMergeInfoPropChange
private SVNWCContext.MergePropStatusInfo applySingleMergeInfoPropChange(SVNPropertyValue resultVal, boolean didMerge, SVNPropertyValue baseVal, SVNPropertyValue oldVal, SVNPropertyValue newVal, SVNPropertyValue workingVal) throws SVNException - Throws:
SVNException
-
combineForkedMergeInfoProps
private SVNPropertyValue combineForkedMergeInfoProps(SVNPropertyValue fromPropVal, SVNPropertyValue workingPropVal, SVNPropertyValue toPropVal) throws SVNException - Throws:
SVNException
-
applySingleMergeinfoPropChange
private SVNWCContext.MergePropStatusInfo applySingleMergeinfoPropChange(SVNStatusType state, java.io.File localAbspath, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, boolean isDir, SVNProperties workingProps, java.lang.String propname, SVNPropertyValue baseVal, SVNPropertyValue oldVal, SVNPropertyValue newVal, ISVNConflictHandler conflictResolver, boolean dryRun) throws SVNException - Throws:
SVNException
-
openWritableBase
public SVNWCContext.WritableBaseInfo openWritableBase(java.io.File localAbspath, boolean md5Checksum, boolean sha1Checksum) throws SVNException - Throws:
SVNException
-
hasMagicProperty
-
getTranslatedStream
public java.io.InputStream getTranslatedStream(java.io.File localAbspath, java.io.File versionedAbspath, boolean translateToNormalForm, boolean repairEOL) throws SVNException - Throws:
SVNException
-
getTranslatedFile
public java.io.File getTranslatedFile(java.io.File src, java.io.File versionedAbspath, boolean toNormalFormat, boolean forceEOLRepair, boolean useGlobalTmp, boolean forceCopy, boolean safelyEncode) throws SVNException When expanding working copy file (which is already expanded, we just have to update EOLs, keywords, etc) One has to pass safelyEncode argument set to true as for this case we have to carefully update necessary parts of the file taking its encoding into account.- Parameters:
src
-versionedAbspath
-toNormalFormat
-forceEOLRepair
-useGlobalTmp
-forceCopy
-safelyEncode
-- Returns:
- Throws:
SVNException
-
mergeText
public SVNWCContext.MergeInfo mergeText(java.io.File left, java.io.File right, java.io.File target, java.lang.String leftLabel, java.lang.String rightLabel, java.lang.String targetLabel, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, boolean dryRun, SVNDiffOptions options, SVNProperties propDiff) throws SVNException - Throws:
SVNException
-
merge
public SVNWCContext.MergeInfo merge(SVNSkel workItems, SVNSkel conflictSkel, java.io.File leftAbspath, java.io.File rightAbspath, java.io.File targetAbspath, java.io.File wriAbspath, java.lang.String leftLabel, java.lang.String rightLabel, java.lang.String targetLabel, SVNProperties oldActualProps, boolean dryRun, SVNDiffOptions options, SVNProperties propDiff) throws SVNException - Throws:
SVNException
-
attemptTrivialMerge
private SVNWCContext.MergeInfo attemptTrivialMerge(SVNWCContext.MergeInfo info, java.io.File leftAbspath, java.io.File rightAbspath, java.io.File targetAbspath, java.io.File detranslatedTargetAbspath, boolean dryRun) throws SVNException - Throws:
SVNException
-
isMarkedAsBinary
- Throws:
SVNException
-
detranslateWCFile
private java.io.File detranslateWCFile(java.io.File targetAbspath, boolean forceCopy, SVNProperties oldActualProps, SVNProperties propDiff, java.io.File sourceAbspath) throws SVNException - Throws:
SVNException
-
openUniqueFile
public static SVNWCContext.UniqueFileInfo openUniqueFile(java.io.File dirPath, boolean openStream) throws SVNException - Throws:
SVNException
-
maybeUpdateTargetEols
private java.io.File maybeUpdateTargetEols(java.io.File oldTargetAbspath, SVNProperties propDiff) throws SVNException - Throws:
SVNException
-
mergeTextFile
private SVNWCContext.MergeInfo mergeTextFile(SVNWCContext.MergeInfo info, ISvnMerger customMerger, java.io.File leftAbspath, java.io.File rightAbspath, java.io.File targetAbspath, java.io.File wriAbspath, java.lang.String leftLabel, java.lang.String rightLabel, java.lang.String targetLabel, boolean dryRun, SVNDiffOptions options, java.io.File copyfromText, java.io.File detranslatedTargetAbspath, SVNPropertyValue mimeprop) throws SVNException - Throws:
SVNException
-
doTextMerge
private boolean doTextMerge(ISvnMerger customMerger, java.io.File resultFile, java.io.File targetAbsPath, java.io.File detranslatedTargetAbspath, java.io.File leftAbspath, java.io.File rightAbspath, java.lang.String targetLabel, java.lang.String leftLabel, java.lang.String rightLabel, SVNDiffOptions options, SVNDiffConflictChoiceStyle style) throws SVNException - Throws:
SVNException
-
initConflictMarkers
SVNWCContext.ConflictMarkersInfo initConflictMarkers(java.lang.String targetLabel, java.lang.String leftLabel, java.lang.String rightLabel) -
preservePreMergeFiles
private SVNWCContext.PresevePreMergeFileInfo preservePreMergeFiles(java.io.File leftAbspath, java.io.File rightAbspath, java.io.File targetAbspath, java.lang.String leftLabel, java.lang.String rightLabel, java.lang.String targetLabel, java.io.File detranslatedTargetAbspath) throws SVNException - Throws:
SVNException
-
maybeResolveConflicts
private SVNWCContext.MergeInfo maybeResolveConflicts(java.io.File leftAbspath, java.io.File rightAbspath, java.io.File targetAbspath, java.io.File copyfromText, java.lang.String leftLabel, java.lang.String rightLabel, java.lang.String targetLabel, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, java.io.File resultTarget, java.io.File detranslatedTarget, SVNPropertyValue mimeprop, SVNDiffOptions options, ISVNConflictHandler conflictResolver) throws SVNException - Throws:
SVNException
-
setupTextConflictDesc
private SVNConflictDescription setupTextConflictDesc(java.io.File leftAbspath, java.io.File rightAbspath, java.io.File targetAbspath, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, java.io.File resultTarget, java.io.File detranslatedTarget, SVNPropertyValue mimeprop, boolean isBinary) -
setupTreeConflictDesc
private SVNConflictDescription setupTreeConflictDesc(java.io.File localAbsPath, SVNOperation operation, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, SVNConflictReason localChange, SVNConflictAction incomingChange) -
saveMergeResult
private SVNSkel saveMergeResult(java.io.File versionedAbspath, java.io.File source) throws SVNException - Throws:
SVNException
-
evalConflictResolverResult
private SVNWCContext.MergeInfo evalConflictResolverResult(SVNConflictChoice choice, java.io.File wriAbspath, java.io.File leftAbspath, java.io.File rightAbspath, java.io.File targetAbspath, java.io.File copyfromText, java.io.File mergedFile, java.io.File detranslatedTarget, SVNDiffOptions options) throws SVNException - Throws:
SVNException
-
mergeBinaryFile
private SVNWCContext.MergeInfo mergeBinaryFile(SVNWCContext.MergeInfo info, java.io.File leftAbspath, java.io.File rightAbspath, java.io.File targetAbspath, java.lang.String leftLabel, java.lang.String rightLabel, java.lang.String targetLabel, java.io.File detranslatedTargetAbspath, boolean dryRun) throws SVNException - Throws:
SVNException
-
wqBuildFileMove
public SVNSkel wqBuildFileMove(java.io.File srcAbspath, java.io.File dstAbspath) throws SVNException - Throws:
SVNException
-
wqBuildFileMove
public SVNSkel wqBuildFileMove(java.io.File anchorPath, java.io.File srcAbspath, java.io.File dstAbspath) throws SVNException - Throws:
SVNException
-
wqBuildFileCopyTranslated
public SVNSkel wqBuildFileCopyTranslated(java.io.File localAbspath, java.io.File srcAbspath, java.io.File dstAbspath) throws SVNException - Throws:
SVNException
-
wqBuildFileCopyTranslated
public static SVNSkel wqBuildFileCopyTranslated(SVNWCDb db, java.io.File localAbspath, java.io.File srcAbspath, java.io.File dstAbspath) throws SVNException - Throws:
SVNException
-
wqBuildSetTextConflictMarkersTmp
public SVNSkel wqBuildSetTextConflictMarkersTmp(java.io.File localAbspath, java.io.File old, java.io.File neo, java.io.File wrk) throws SVNException - Throws:
SVNException
-
wqBuildBaseRemove
public SVNSkel wqBuildBaseRemove(java.io.File localAbspath, boolean keepNotPresent) throws SVNException - Throws:
SVNException
-
wqBuildBaseRemove
public SVNSkel wqBuildBaseRemove(java.io.File localAbspath, long notPresentRevision, ISVNWCDb.SVNWCDbKind notPresentKind) throws SVNException - Throws:
SVNException
-
wqBuildBaseRemove
public static SVNSkel wqBuildBaseRemove(SVNWCDb db, java.io.File localAbspath, long notPresentRevision, ISVNWCDb.SVNWCDbKind notPresentKind) throws SVNException - Throws:
SVNException
-
wqBuildRecordFileinfo
public SVNSkel wqBuildRecordFileinfo(java.io.File localAbspath, SVNDate setTime) throws SVNException - Throws:
SVNException
-
wqBuildFileInstall
public SVNSkel wqBuildFileInstall(java.io.File localAbspath, java.io.File sourceAbspath, boolean useCommitTimes, boolean recordFileinfo) throws SVNException - Throws:
SVNException
-
wqBuildFileInstall
public static SVNSkel wqBuildFileInstall(SVNWCDb db, java.io.File localAbspath, java.io.File sourceAbspath, boolean useCommitTimes, boolean recordFileinfo) throws SVNException - Throws:
SVNException
-
wqBuildSyncFileFlags
- Throws:
SVNException
-
wqBuildSyncFileFlags
public static SVNSkel wqBuildSyncFileFlags(SVNWCDb db, java.io.File localAbspath) throws SVNException - Throws:
SVNException
-
wqBuildFileRemove
public SVNSkel wqBuildFileRemove(java.io.File wriAbsPath, java.io.File localAbspath) throws SVNException - Throws:
SVNException
-
wqBuildFileRemove
public static SVNSkel wqBuildFileRemove(SVNWCDb db, java.io.File wriAbspath, java.io.File localAbspath) throws SVNException - Throws:
SVNException
-
wqBuildDirInstall
- Throws:
SVNException
-
wqBuildDirInstall
- Throws:
SVNException
-
wqBuildDirRemove
public static SVNSkel wqBuildDirRemove(SVNWCDb db, java.io.File wriAbspath, java.io.File localAbspath, boolean recursive) throws SVNException - Throws:
SVNException
-
wqBuildPrejInstall
public SVNSkel wqBuildPrejInstall(java.io.File localAbspath, SVNSkel conflictSkel) throws SVNException - Throws:
SVNException
-
wqBuildPrejInstall
public static SVNSkel wqBuildPrejInstall(ISVNWCDb db, java.io.File localAbspath, SVNSkel conflictSkel) throws SVNException - Throws:
SVNException
-
wqBuildSetPropertyConflictMarkerTemp
public SVNSkel wqBuildSetPropertyConflictMarkerTemp(java.io.File localAbspath, java.io.File prejFile) throws SVNException - Throws:
SVNException
-
wqBuildPostUpgrade
- Throws:
SVNException
-
wqMerge
- Throws:
SVNException
-
isSingleWorkItem
-
wqRun
- Throws:
SVNException
-
dispatchWorkItem
- Throws:
SVNException
-
removeBaseNode
- Throws:
SVNException
-
getAndRecordFileInfo
public void getAndRecordFileInfo(java.io.File localAbspath, boolean ignoreError) throws SVNException - Throws:
SVNException
-
syncFileFlags
- Throws:
SVNException
-
maybeSetReadOnly
- Throws:
SVNException
-
maybeSetExecutable
- Throws:
SVNException
-
createPrejFile
public java.io.File createPrejFile(java.io.File localAbspath, SVNSkel conflictSkel) throws SVNException - Throws:
SVNException
-
appendPropConflict
- Throws:
SVNException
-
messageFromSkel
- Throws:
SVNException
-
maybePropValue
private SVNPropertyValue maybePropValue(java.lang.String propname, SVNSkel child) throws SVNException - Throws:
SVNException
-
generateConflictMessage
private java.lang.String generateConflictMessage(java.lang.String propname, SVNPropertyValue original, SVNPropertyValue mine, SVNPropertyValue incoming, SVNPropertyValue incomingBase) -
resolveConflictOnNode
public boolean resolveConflictOnNode(java.io.File localAbsPath, boolean resolveText, boolean resolveProps, SVNConflictChoice conflictChoice) throws SVNException - Throws:
SVNException
-
resolveOneConflict
private void resolveOneConflict(java.io.File localAbsPath, boolean resolveText, java.lang.String resolveProps, boolean resolveTree, SVNConflictChoice conflictChoice) throws SVNException - Throws:
SVNException
-
recursiveResolveConflict
private void recursiveResolveConflict(java.io.File localAbsPath, SVNDepth depth, boolean resolveText, java.lang.String resolveProps, boolean resolveTree, SVNConflictChoice conflictChoice, ISVNConflictHandler conflictHandler) throws SVNException - Throws:
SVNException
-
resolvedConflict
public void resolvedConflict(java.io.File localAbsPath, SVNDepth depth, boolean resolveText, java.lang.String resolveProps, boolean resolveTree, SVNConflictChoice conflictChoice) throws SVNException - Throws:
SVNException
-
attemptDeletion
- Throws:
SVNException
-
checkWC
- Throws:
SVNException
-
checkWC
- Throws:
SVNException
-
initializeWC
public void initializeWC(java.io.File localAbspath, SVNURL url, SVNURL repositoryRoot, java.lang.String uuid, long revision, SVNDepth depth, int targetWorkingCopyFormat) throws SVNException - Throws:
SVNException
-
initWC
private void initWC(java.io.File localAbspath, java.io.File reposRelpath, SVNURL repositoryRoot, java.lang.String uuid, long revNumber, SVNDepth depth, int workingCopyFormat) throws SVNException - Throws:
SVNException
-
getActualTarget
- Throws:
SVNException
-
getNodeReposRelPath
- Throws:
SVNException
-
isChangelistMatch
public boolean isChangelistMatch(java.io.File localAbsPath, java.util.Collection<java.lang.String> changelistsSet) -
isNodeStatusDeleted
- Throws:
SVNException
-
getPropDiffs
- Throws:
SVNException
-
getNodeLock
- Throws:
SVNException
-
getNodeChildren
public java.util.List<java.io.File> getNodeChildren(java.io.File dirAbsPath, boolean showHidden) throws SVNException - Throws:
SVNException
-
getChildrenOfWorkingNode
public java.util.List<java.io.File> getChildrenOfWorkingNode(java.io.File dirAbsPath, boolean showHidden) throws SVNException - Throws:
SVNException
-
getNodeDepth
- Throws:
SVNException
-
wqBuildFileCommit
- Throws:
SVNException
-
getRelativePath
- Throws:
SVNException
-
getRelativePath
private static java.io.File getRelativePath(SVNWCDb db, java.io.File localAbspath) throws SVNException - Throws:
SVNException
-
ensureNoUnfinishedTransactions
- Throws:
SVNException
-
canonicalizeURLs
public void canonicalizeURLs(java.io.File path, SVNExternalsStore externalsStore, boolean omitDefaultPort) throws SVNException - Throws:
SVNException
-
setSqliteJournalMode
public void setSqliteJournalMode(org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalMode sqliteJournalMode) -
setSqliteTemporaryDbInMemory
public void setSqliteTemporaryDbInMemory(boolean temporaryDbInMemory) -
conflictCreateMarker
public SVNSkel conflictCreateMarker(SVNSkel conflictSkel, java.io.File localAbsPath) throws SVNException - Throws:
SVNException
-
invokeConflictResolver
public void invokeConflictResolver(java.io.File localAbsPath, SVNSkel conflictSkel, ISVNConflictHandler conflictHandler, ISVNCanceller canceller) throws SVNException - Throws:
SVNException
-
generatePropConflict
private boolean generatePropConflict(java.io.File localAbsPath, SVNOperation operation, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, java.lang.String propName, SVNPropertyValue baseVal, SVNPropertyValue workingVal, SVNPropertyValue incomingOldVal, SVNPropertyValue incomingNewVal, ISVNConflictHandler conflictHandler) throws SVNException - Throws:
SVNException
-
resolveTextConflict
public SVNWCContext.TextConflictResolutionInfo resolveTextConflict(java.io.File localAbsPath, SVNOperation operation, java.io.File leftAbsPath, java.io.File rightAbsPath, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, java.io.File resultTarget, java.io.File detranslatedTarget, ISVNConflictHandler conflictHandler) throws SVNException - Throws:
SVNException
-
evalTextConflictFuncResult
private SVNWCContext.TextConflictResolutionInfo evalTextConflictFuncResult(java.io.File localAbsPath, SVNConflictChoice choice, java.io.File leftAbsPath, java.io.File rightAbsPath, java.io.File mergedAbsPath, java.io.File detranslatedTarget) throws SVNException - Throws:
SVNException
-
arePropsEqual
private static boolean arePropsEqual(SVNPropertyValue propertyValue1, SVNPropertyValue propertyValue2) -
saveMergeResult
private static SVNSkel saveMergeResult(ISVNWCDb db, java.io.File localAbsPath, java.io.File sourceAbsPath) throws SVNException - Throws:
SVNException
-
resolveTreeConflictOnNode
private boolean resolveTreeConflictOnNode(java.io.File localAbsPath, SVNConflictChoice conflictChoice) throws SVNException - Throws:
SVNException
-
resolveTextConflictOnNode
private boolean resolveTextConflictOnNode(java.io.File localAbsPath, SVNConflictChoice conflictChoice, java.io.File mergedFile) throws SVNException - Throws:
SVNException
-
resolvePropConflictOnNode
private boolean resolvePropConflictOnNode(java.io.File localAbsPath, java.lang.String conflictedPropName, SVNConflictChoice conflictChoice, java.io.File mergedFile) throws SVNException - Throws:
SVNException
-
removeArtifactFileIfExists
private SVNWCContext.RemoveArtifactInfo removeArtifactFileIfExists(java.io.File wriAbsPath, java.io.File artifactFileAbsPath) throws SVNException - Throws:
SVNException
-
getNodeBase
public ISVNWCDb.WCDbBaseInfo getNodeBase(java.io.File localAbsPath, boolean ignoreNonExisting, boolean showHidden) throws SVNException - Throws:
SVNException
-
acquireWriteLockForResolve
- Throws:
SVNException
-
getNodePresence
public SVNWCContext.NodePresence getNodePresence(java.io.File localAbsPath, boolean baseOnly) throws SVNException - Throws:
SVNException
-
committableExternalsBelow
public java.util.List<SVNWCContext.CommittableExternalInfo> committableExternalsBelow(java.util.List<SVNWCContext.CommittableExternalInfo> externals, java.io.File localAbsPath, SVNDepth depth) throws SVNException - Throws:
SVNException
-
isExternalRolledOut
-
nodeWasMovedHere
- Throws:
SVNException
-
nodeWasMovedAway
- Throws:
SVNException
-
getNodeDeletedAncestor
- Throws:
SVNException
-
checkForObstructions
public SVNWCContext.ObstructionData checkForObstructions(java.io.File localAbsPath, boolean noWcRootCheck) throws SVNException - Throws:
SVNException
-
convertDbKindToNodeKind
private SVNNodeKind convertDbKindToNodeKind(SVNNodeKind dbKind, ISVNWCDb.SVNWCDbStatus dbStatus, boolean showHidden) -
deleteTreeConflict
- Throws:
SVNException
-
addTreeConflict
- Throws:
SVNException
-