public class SVNPatchTarget
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
applyHunk(SVNPatchHunkInfo hi)
Write the modified text of hunk described by HI to the patched stream of
TARGET.
|
static SVNPatchTarget |
applyPatch(SVNPatch patch,
java.io.File absWCPath,
int stripCount,
SVNAdminArea wc)
Apply a PATCH to a working copy at ABS_WC_PATH.
|
void |
copyLinesToTarget(int line)
Copy lines to the patched stream until the specified LINE has been
reached.
|
static java.lang.String[] |
decomposePath(java.io.File path) |
java.io.File |
getAbsPath() |
java.io.File |
getCanonPathFromPatchfile() |
int |
getCurrentLine() |
java.lang.String |
getEolStr() |
java.lang.String |
getEolStyle() |
java.io.RandomAccessFile |
getFile() |
SVNPatchHunkInfo |
getHunkInfo(SVNPatchHunk hunk,
int fuzz)
Determine the line at which a HUNK applies to the TARGET file, and return
an appropriate hunk_info object in *HI, allocated from RESULT_POOL.
|
java.util.List |
getHunks() |
java.util.Map |
getKeywords() |
SVNNodeKind |
getKind() |
java.util.List |
getLines() |
SVNPatch |
getPatch() |
java.io.OutputStream |
getPatched() |
java.io.File |
getPatchedPath() |
java.io.OutputStream |
getPatchedRaw() |
SVNPatchFileStream |
getReject() |
java.io.File |
getRejectPath() |
java.io.File |
getRelPath() |
SVNPatchFileStream |
getStream() |
static SVNPatchTarget |
initPatchTarget(SVNPatch patch,
java.io.File baseDir,
int stripCount,
SVNAdminArea wc)
Attempt to initialize a patch TARGET structure for a target file
described by PATCH.
|
void |
installPatchedTarget(java.io.File absWCPath,
boolean dryRun,
SVNAdminArea wc)
Install a patched TARGET into the working copy at ABS_WC_PATH.
|
boolean |
isAdded() |
boolean |
isDeleted() |
boolean |
isEof() |
boolean |
isExecutable() |
boolean |
isHadRejects() |
boolean |
isLocalMods() |
boolean |
isModified() |
boolean |
isParentDirExists() |
boolean |
isSkipped() |
void |
readLine(java.lang.StringBuffer line)
Read a *LINE from TARGET.
|
void |
rejectHunk(SVNPatchHunkInfo hi)
Write the diff text of the hunk described by HI to the reject stream of
TARGET, and mark TARGET as having had rejects.
|
int |
scanForMatch(SVNPatchHunk hunk,
boolean matchFirst,
int upperLine,
int fuzz)
Scan lines of TARGET for a match of the original text of HUNK, up to but
not including the specified UPPER_LINE.
|
void |
seekToLine(int line)
Seek to the specified LINE in TARGET.
|
void |
sendPatchNotification(SVNAdminArea wc)
Use client context CTX to send a suitable notification for a patch
TARGET.
|
public boolean isLocalMods()
public java.lang.String getEolStr()
public java.util.Map getKeywords()
public java.lang.String getEolStyle()
public java.io.RandomAccessFile getFile()
public java.io.OutputStream getPatchedRaw()
public java.io.File getCanonPathFromPatchfile()
public SVNPatch getPatch()
public int getCurrentLine()
public boolean isModified()
public boolean isEof()
public java.util.List getLines()
public boolean isSkipped()
public java.util.List getHunks()
public SVNNodeKind getKind()
public SVNPatchFileStream getStream()
public java.io.OutputStream getPatched()
public SVNPatchFileStream getReject()
public java.io.File getPatchedPath()
public boolean isAdded()
public boolean isDeleted()
public boolean isExecutable()
public java.io.File getRejectPath()
public java.io.File getAbsPath()
public java.io.File getRelPath()
public boolean isHadRejects()
public boolean isParentDirExists()
public static SVNPatchTarget initPatchTarget(SVNPatch patch, java.io.File baseDir, int stripCount, SVNAdminArea wc) throws SVNException, java.io.IOException
SVNException
java.io.IOException
public void rejectHunk(SVNPatchHunkInfo hi) throws SVNException, java.io.IOException
java.io.IOException
SVNException
public void applyHunk(SVNPatchHunkInfo hi) throws SVNException, java.io.IOException
SVNException
java.io.IOException
public void seekToLine(int line) throws SVNException, java.io.IOException
SVNException
java.io.IOException
public void readLine(java.lang.StringBuffer line) throws SVNException, java.io.IOException
SVNException
java.io.IOException
public void copyLinesToTarget(int line) throws SVNException, java.io.IOException
java.io.IOException
SVNException
public void installPatchedTarget(java.io.File absWCPath, boolean dryRun, SVNAdminArea wc) throws SVNException
SVNException
public static java.lang.String[] decomposePath(java.io.File path)
public static SVNPatchTarget applyPatch(SVNPatch patch, java.io.File absWCPath, int stripCount, SVNAdminArea wc) throws SVNException, java.io.IOException
SVNException
java.io.IOException
public SVNPatchHunkInfo getHunkInfo(SVNPatchHunk hunk, int fuzz) throws SVNException, java.io.IOException
SVNException
java.io.IOException
public int scanForMatch(SVNPatchHunk hunk, boolean matchFirst, int upperLine, int fuzz) throws SVNException, java.io.IOException
SVNException
java.io.IOException
public void sendPatchNotification(SVNAdminArea wc) throws SVNException
SVNException
Copyright © 2004-2012 TMate Software Ltd. All Rights Reserved.