public class FSUpdateContext
extends java.lang.Object
Modifier and Type | Field and 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 and 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) |
Modifier and Type | Method and 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) |
private java.io.File myReportFile
private java.lang.String myTarget
private java.io.OutputStream myReportOS
private FSFile myReportIS
private ISVNEditor myEditor
private long myTargetRevision
private SVNDepth myDepth
private PathInfo myCurrentPathInfo
private boolean ignoreAncestry
private boolean sendTextDeltas
private java.lang.String myTargetPath
private boolean isSwitch
private boolean mySendCopyFromArgs
private FSRoot myTargetRoot
private java.util.LinkedList myRootsCache
private FSFS myFSFS
private FSRepository myRepository
private SVNDeltaGenerator myDeltaGenerator
private SVNDeltaCombiner myDeltaCombiner
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)
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
SVNException
public void setTargetRoot(FSRoot root)
public java.io.OutputStream getReportFileForWriting() throws SVNException
SVNException
private boolean isIgnoreAncestry()
private boolean isSwitch()
private boolean isSendTextDeltas()
private java.lang.String getReportTarget()
private java.lang.String getReportTargetPath()
public void dispose() throws SVNException
SVNException
private ISVNEditor getEditor()
private long getTargetRevision()
private PathInfo getNextPathInfo() throws java.io.IOException, SVNException
java.io.IOException
SVNException
private PathInfo getCurrentPathInfo()
private FSRoot getTargetRoot() throws SVNException
SVNException
private java.util.LinkedList getRootsCache()
private FSRevisionRoot getSourceRoot(long revision) throws SVNException
SVNException
public void drive() throws SVNException
SVNException
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
SVNException
private boolean isDepthUpgrade(SVNDepth wcDepth, SVNDepth requestedDepth, SVNNodeKind kind)
private void diffFiles(long sourceRevision, java.lang.String sourcePath, java.lang.String targetPath, java.lang.String editPath, java.lang.String lockToken) throws SVNException
SVNException
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
SVNException
private long getDeletedRevision(java.lang.String targetPath, long sourceRevision, long targetRevision) throws SVNException
SVNException
private boolean isTransactionTarget() throws SVNException
SVNException
private SVNLocationEntry addFileSmartly(java.lang.String editPath, java.lang.String originalPath) throws SVNException
SVNException
private java.util.Map computeMetaProperties(long revision) throws SVNException
SVNException
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
SVNException
private java.lang.Object[] fetchPathInfo(java.lang.String prefix) throws SVNException
SVNException
private void changeProperty(java.lang.String path, java.lang.String name, SVNPropertyValue value, boolean isDir) throws SVNException
SVNException
private FSEntry fakeDirEntry(java.lang.String reposPath, FSRoot root) throws SVNException
SVNException
private void skipPathInfo(java.lang.String prefix) throws SVNException
SVNException
private void writeSingleString(java.lang.String s, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public void writePathInfoToReportFile(java.lang.String path, java.lang.String linkPath, java.lang.String lockToken, long revision, boolean startEmpty, SVNDepth depth) throws SVNException
SVNException
public java.lang.String getDepthLetter(SVNDepth depth) throws SVNException
SVNException