Class FSUpdateContext
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.io.fs.FSUpdateContext
-
public class FSUpdateContext extends java.lang.Object
- Version:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
ignoreAncestry
private boolean
isSwitch
private PathInfo
myCurrentPathInfo
private SVNDeltaCombiner
myDeltaCombiner
private SVNDeltaGenerator
myDeltaGenerator
private SVNDepth
myDepth
private ISVNEditor
myEditor
private FSFS
myFSFS
private java.io.File
myReportFile
private FSFile
myReportIS
private java.io.OutputStream
myReportOS
private FSRepository
myRepository
private java.util.LinkedList
myRootsCache
private boolean
mySendCopyFromArgs
private java.lang.String
myTarget
private java.lang.String
myTargetPath
private long
myTargetRevision
private FSRoot
myTargetRoot
private boolean
sendTextDeltas
-
Constructor Summary
Constructors Constructor Description FSUpdateContext(FSRepository repository, FSFS owner, long revision, java.io.File reportFile, java.lang.String target, java.lang.String targetPath, boolean isSwitch, SVNDepth depth, boolean ignoreAncestry, boolean textDeltas, boolean sendCopyFromArgs, ISVNEditor editor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private SVNLocationEntry
addFileSmartly(java.lang.String editPath, java.lang.String originalPath)
private void
changeProperty(java.lang.String path, java.lang.String name, SVNPropertyValue value, boolean isDir)
private java.util.Map
computeMetaProperties(long revision)
private void
diffDirs(long sourceRevision, java.lang.String sourcePath, java.lang.String targetPath, java.lang.String editPath, boolean startEmpty, SVNDepth wcDepth, SVNDepth requestedDepth)
private void
diffFiles(long sourceRevision, java.lang.String sourcePath, java.lang.String targetPath, java.lang.String editPath, java.lang.String lockToken)
private void
diffProplists(long sourceRevision, java.lang.String sourcePath, java.lang.String editPath, java.lang.String targetPath, java.lang.String lockToken, boolean isDir)
void
dispose()
void
drive()
private FSEntry
fakeDirEntry(java.lang.String reposPath, FSRoot root)
private java.lang.Object[]
fetchPathInfo(java.lang.String prefix)
private PathInfo
getCurrentPathInfo()
private long
getDeletedRevision(java.lang.String targetPath, long sourceRevision, long targetRevision)
private SVNDepth
getDepthBelow(SVNDepth depth)
java.lang.String
getDepthLetter(SVNDepth depth)
private ISVNEditor
getEditor()
private PathInfo
getNextPathInfo()
java.io.OutputStream
getReportFileForWriting()
private java.lang.String
getReportTarget()
private java.lang.String
getReportTargetPath()
private java.util.LinkedList
getRootsCache()
private FSRevisionRoot
getSourceRoot(long revision)
private long
getTargetRevision()
private FSRoot
getTargetRoot()
private boolean
isDepthUpgrade(SVNDepth wcDepth, SVNDepth requestedDepth, SVNNodeKind kind)
private boolean
isIgnoreAncestry()
private boolean
isSendTextDeltas()
private boolean
isSwitch()
private boolean
isTransactionTarget()
void
reset(FSRepository repository, FSFS owner, long revision, java.io.File reportFile, java.lang.String target, java.lang.String targetPath, boolean isSwitch, SVNDepth depth, boolean ignoreAncestry, boolean textDeltas, boolean sendCopyFrom, ISVNEditor editor)
void
setTargetRoot(FSRoot root)
private void
skipPathInfo(java.lang.String prefix)
private void
updateEntry(long sourceRevision, java.lang.String sourcePath, FSEntry sourceEntry, java.lang.String targetPath, FSEntry targetEntry, java.lang.String editPath, PathInfo pathInfo, SVNDepth wcDepth, SVNDepth requestedDepth)
void
writePathInfoToReportFile(java.lang.String path, java.lang.String linkPath, java.lang.String lockToken, long revision, boolean startEmpty, SVNDepth depth)
private void
writeSingleString(java.lang.String s, java.io.OutputStream out)
-
-
-
Field Detail
-
myReportFile
private java.io.File myReportFile
-
myTarget
private java.lang.String myTarget
-
myReportOS
private java.io.OutputStream myReportOS
-
myReportIS
private FSFile myReportIS
-
myEditor
private ISVNEditor myEditor
-
myTargetRevision
private long myTargetRevision
-
myDepth
private SVNDepth myDepth
-
myCurrentPathInfo
private PathInfo myCurrentPathInfo
-
ignoreAncestry
private boolean ignoreAncestry
-
sendTextDeltas
private boolean sendTextDeltas
-
myTargetPath
private java.lang.String myTargetPath
-
isSwitch
private boolean isSwitch
-
mySendCopyFromArgs
private boolean mySendCopyFromArgs
-
myTargetRoot
private FSRoot myTargetRoot
-
myRootsCache
private java.util.LinkedList myRootsCache
-
myFSFS
private FSFS myFSFS
-
myRepository
private FSRepository myRepository
-
myDeltaGenerator
private SVNDeltaGenerator myDeltaGenerator
-
myDeltaCombiner
private SVNDeltaCombiner myDeltaCombiner
-
-
Constructor Detail
-
FSUpdateContext
public FSUpdateContext(FSRepository repository, FSFS owner, long revision, java.io.File reportFile, java.lang.String target, java.lang.String targetPath, boolean isSwitch, SVNDepth depth, boolean ignoreAncestry, boolean textDeltas, boolean sendCopyFromArgs, ISVNEditor editor)
-
-
Method Detail
-
reset
public void reset(FSRepository repository, FSFS owner, long revision, java.io.File reportFile, java.lang.String target, java.lang.String targetPath, boolean isSwitch, SVNDepth depth, boolean ignoreAncestry, boolean textDeltas, boolean sendCopyFrom, ISVNEditor editor) throws SVNException
- Throws:
SVNException
-
setTargetRoot
public void setTargetRoot(FSRoot root)
-
getReportFileForWriting
public java.io.OutputStream getReportFileForWriting() throws SVNException
- Throws:
SVNException
-
isIgnoreAncestry
private boolean isIgnoreAncestry()
-
isSwitch
private boolean isSwitch()
-
isSendTextDeltas
private boolean isSendTextDeltas()
-
getReportTarget
private java.lang.String getReportTarget()
-
getReportTargetPath
private java.lang.String getReportTargetPath()
-
dispose
public void dispose() throws SVNException
- Throws:
SVNException
-
getEditor
private ISVNEditor getEditor()
-
getTargetRevision
private long getTargetRevision()
-
getNextPathInfo
private PathInfo getNextPathInfo() throws java.io.IOException, SVNException
- Throws:
java.io.IOException
SVNException
-
getCurrentPathInfo
private PathInfo getCurrentPathInfo()
-
getTargetRoot
private FSRoot getTargetRoot() throws SVNException
- Throws:
SVNException
-
getRootsCache
private java.util.LinkedList getRootsCache()
-
getSourceRoot
private FSRevisionRoot getSourceRoot(long revision) throws SVNException
- Throws:
SVNException
-
drive
public void drive() throws SVNException
- Throws:
SVNException
-
diffDirs
private void diffDirs(long sourceRevision, java.lang.String sourcePath, java.lang.String targetPath, java.lang.String editPath, boolean startEmpty, SVNDepth wcDepth, SVNDepth requestedDepth) throws SVNException
- Throws:
SVNException
-
isDepthUpgrade
private boolean isDepthUpgrade(SVNDepth wcDepth, SVNDepth requestedDepth, SVNNodeKind kind)
-
diffFiles
private void diffFiles(long sourceRevision, java.lang.String sourcePath, java.lang.String targetPath, java.lang.String editPath, java.lang.String lockToken) throws SVNException
- Throws:
SVNException
-
updateEntry
private void updateEntry(long sourceRevision, java.lang.String sourcePath, FSEntry sourceEntry, java.lang.String targetPath, FSEntry targetEntry, java.lang.String editPath, PathInfo pathInfo, SVNDepth wcDepth, SVNDepth requestedDepth) throws SVNException
- Throws:
SVNException
-
getDeletedRevision
private long getDeletedRevision(java.lang.String targetPath, long sourceRevision, long targetRevision) throws SVNException
- Throws:
SVNException
-
isTransactionTarget
private boolean isTransactionTarget() throws SVNException
- Throws:
SVNException
-
addFileSmartly
private SVNLocationEntry addFileSmartly(java.lang.String editPath, java.lang.String originalPath) throws SVNException
- Throws:
SVNException
-
computeMetaProperties
private java.util.Map computeMetaProperties(long revision) throws SVNException
- Throws:
SVNException
-
diffProplists
private void diffProplists(long sourceRevision, java.lang.String sourcePath, java.lang.String editPath, java.lang.String targetPath, java.lang.String lockToken, boolean isDir) throws SVNException
- Throws:
SVNException
-
fetchPathInfo
private java.lang.Object[] fetchPathInfo(java.lang.String prefix) throws SVNException
- Throws:
SVNException
-
changeProperty
private void changeProperty(java.lang.String path, java.lang.String name, SVNPropertyValue value, boolean isDir) throws SVNException
- Throws:
SVNException
-
fakeDirEntry
private FSEntry fakeDirEntry(java.lang.String reposPath, FSRoot root) throws SVNException
- Throws:
SVNException
-
skipPathInfo
private void skipPathInfo(java.lang.String prefix) throws SVNException
- Throws:
SVNException
-
writeSingleString
private void writeSingleString(java.lang.String s, java.io.OutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
writePathInfoToReportFile
public void writePathInfoToReportFile(java.lang.String path, java.lang.String linkPath, java.lang.String lockToken, long revision, boolean startEmpty, SVNDepth depth) throws SVNException
- Throws:
SVNException
-
getDepthLetter
public java.lang.String getDepthLetter(SVNDepth depth) throws SVNException
- Throws:
SVNException
-
-