|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISvnInfoProcessor
Performs svn info queries.
Method Summary | |
---|---|
String |
absolutePathToUrl(String absolute)
Converts an absolute path in the repository to a URL, using the repository URL |
String |
absoluteToRelativePath(String absolute)
Converts an absolute path in the repository to a path relative to the working folder root. |
void |
addDirectory(String relativePath)
Adds a directory to the list of known directories. |
void |
checkRepoRootAvailable()
Verifies that the "svn info" command can return the repository root (info available in svn >= 1.3.0) |
boolean |
existsInWorkingCopy(String relativePath)
Returns true if the file exists in the working copy (according to the svn metadata, and not file system checks). |
String |
getModuleName()
Assumes #loadInfo(String) has been called. |
String |
getRepositoryUrl()
Assumes #loadInfo() has been invoked. |
String |
getRepositoryUuid()
Assumes #loadInfo() has been invoked. |
String |
getRevisionNumber(String relativePath)
Returns the revision number of the file in the working copy. |
String |
getRootRevisionNumber()
Assumes #loadInfo() has been invoked. |
String |
getRootUrl()
Assumes #loadInfo() has been invoked. |
boolean |
isDirectory(String relativePath)
Returns true if the path has been identified as a directory. |
void |
loadInfo()
Initializes our representation of the repository. |
void |
loadInfo(InputStream stream)
Loads the information from svn info if needed. |
String |
relativePathToUrl(String relative)
Converts a relative path in the working folder to a URL, using the working folder's root URL |
String |
relativeToAbsolutePath(String relative)
Converts a relative path in the working folder to an absolute path in the repository. |
String |
urlToAbsolutePath(String url)
Converts a url to an absolute path in the repository. |
String |
urlToRelativePath(String url)
Converts a url to a relative path in the repository. |
Method Detail |
---|
String absoluteToRelativePath(String absolute)
absolute
- Example (assume getModuleName() returns /trunk/statsvn)
/trunk/statsvn/package.html
String absolutePathToUrl(String absolute)
absolute
- Example: /trunk/statsvn/package.html
String relativePathToUrl(String relative)
relative
- Example: src/Messages.java
String relativeToAbsolutePath(String relative)
relative
- Example: src/Messages.java
boolean existsInWorkingCopy(String relativePath)
relativePath
- the path
String getModuleName()
String getRevisionNumber(String relativePath)
relativePath
- the filename
String getRootRevisionNumber()
String getRootUrl()
String getRepositoryUuid()
String getRepositoryUrl()
boolean isDirectory(String relativePath)
relativePath
- the path
void addDirectory(String relativePath)
relativePath
- the relative path.void loadInfo(InputStream stream) throws net.sf.statcvs.input.LogSyntaxException, IOException
stream
- the input stream representing
an svn info command.
net.sf.statcvs.input.LogSyntaxException
- if the format of the svn info is invalid
IOException
- if we can't read from the response stream.void loadInfo() throws net.sf.statcvs.input.LogSyntaxException, IOException
net.sf.statcvs.input.LogSyntaxException
- if the svn info --xml is malformed
IOException
- if there is an error reading from the streamString urlToAbsolutePath(String url)
url
- Examples: svn://svn.statsvn.org/statsvn/trunk/statsvn,
svn://svn.statsvn.org/statsvn/trunk/statsvn/package.html
String urlToRelativePath(String url)
url
- Examples: svn://svn.statsvn.org/statsvn/trunk/statsvn,
svn://svn.statsvn.org/statsvn/trunk/statsvn/package.html
void checkRepoRootAvailable() throws SvnVersionMismatchException
SvnVersionMismatchException
- if svn info failed to provide a non-empty repository root
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |