📄 svnclientsynchronized.java
字号:
* @return the Properties * @throws ClientException * @since 1.2 */ public PropertyData[] revProperties(String path, Revision rev) throws ClientException { synchronized(clazz) { return worker.revProperties(path, rev); } } /** * set one revsision property of one item * @param path path of the item * @param name name of the property * @param rev revision to retrieve * @param value value of the property * @param force * @throws ClientException * @since 1.2 */ public void setRevProperty(String path, String name, Revision rev, String value, boolean force) throws ClientException { synchronized(clazz) { worker.setRevProperty(path, name, rev, value, force); } } /** * Retrieve one property of one iten * @param path path of the item * @param name name of property * @return the Property * @throws ClientException */ public PropertyData propertyGet(String path, String name) throws ClientException { synchronized(clazz) { return worker.propertyGet(path, name); } } /** * Retrieve one property of one iten * * @param path path of the item * @param name name of property * @param revision revision of the item * @return the Property * @throws ClientException * @since 1.2 */ public PropertyData propertyGet(String path, String name, Revision revision) throws ClientException { synchronized(clazz) { return worker.propertyGet(path, name, revision); } } /** * Retrieve one property of one iten * * @param path path of the item * @param name name of property * @param revision revision of the item * @param pegRevision the revision to interpret path * @return the Property * @throws ClientException * @since 1.2 */ public PropertyData propertyGet(String path, String name, Revision revision, Revision pegRevision) throws ClientException { synchronized(clazz) { return worker.propertyGet(path, name, revision, pegRevision); } } /** * Retrieve the content of a file * @param path the path of the file * @param revision the revision to retrieve * @return the content as byte array * @throws ClientException */ public byte[] fileContent(String path, Revision revision) throws ClientException { synchronized(clazz) { return worker.fileContent(path, revision); } } /** * Retrieve the content of a file * * @param path the path of the file * @param revision the revision to retrieve * @param pegRevision the revision to interpret path * @return the content as byte array * @throws ClientException * @since 1.2 */ public byte[] fileContent(String path, Revision revision, Revision pegRevision) throws ClientException { synchronized(clazz) { return worker.fileContent(path, revision, pegRevision); } } /** * Write the file's content to the specified output stream. * * @param path the path of the file * @param revision the revision to retrieve * @param pegRevision the revision at which to interpret the path * @param the stream to write the file's content to * @throws ClientException */ public void streamFileContent(String path, Revision revision, Revision pegRevision, int bufferSize, OutputStream stream) throws ClientException { synchronized(clazz) { worker.streamFileContent(path, revision, pegRevision, bufferSize, stream); } } /** * Rewrite the url's in the working copy * @param from old url * @param to new url * @param path working copy path * @param recurse recurse into subdirectories * @throws ClientException */ public void relocate(String from, String to, String path, boolean recurse) throws ClientException { synchronized(clazz) { worker.relocate(from, to, path, recurse); } } /** * Return for each line of the file, the author and the revision of the * last together with the content. * @deprecated * @param path the path * @param revisionStart the first revision to show * @param revisionEnd the last revision to show * @return the content together with author and revision of last change * @throws ClientException */ public byte[] blame(String path, Revision revisionStart, Revision revisionEnd) throws ClientException { synchronized(clazz) { return worker.blame(path,revisionStart, revisionEnd); } } /** * Retrieve the content together with the author, the revision and the date * of the last change of each line * @param path the path * @param revisionStart the first revision to show * @param revisionEnd the last revision to show * @param callback callback to receive the file content and the other * information * @throws ClientException */ public void blame(String path, Revision revisionStart, Revision revisionEnd, BlameCallback callback) throws ClientException { synchronized(clazz) { worker.blame(path, revisionStart, revisionEnd, callback); } } /** * Retrieve the content together with the author, the revision and the date * of the last change of each line * @param path the path * @param pegRevision the revision to interpret the path * @param revisionStart the first revision to show * @param revisionEnd the last revision to show * @param callback callback to receive the file content and the other * information * @throws ClientException * @since 1.2 */ public void blame(String path, Revision pegRevision, Revision revisionStart, Revision revisionEnd, BlameCallback callback) throws ClientException { synchronized(clazz) { worker.blame(path, pegRevision, revisionStart, revisionEnd, callback); } } /** * Set directory for the configuration information * @param configDir path of the directory * @throws ClientException */ public void setConfigDirectory(String configDir) throws ClientException { synchronized(clazz) { worker.setConfigDirectory(configDir); } } /** * Get the configuration directory * @return the directory * @throws ClientException */ public String getConfigDirectory() throws ClientException { synchronized(clazz) { return worker.getConfigDirectory(); } } /** * cancel the active operation * @throws ClientException */ public void cancelOperation() throws ClientException { // this method is not synchronized, because it is designed to be called // from another thread worker.cancelOperation(); } /** * Retrieves the working copy information for an item * @param path path of the item * @return the information object * @throws ClientException */ public Info info(String path) throws ClientException { synchronized(clazz) { return worker.info(path); } } /** * Commits changes to the repository. * * @param path files to commit. * @param message log message. * @param recurse whether the operation should be done recursively. * @param noUnlock do remove any locks * @return Returns a long representing the revision. It returns a * -1 if the revision number is invalid. * @throws ClientException * @since 1.2 */ public long commit(String[] path, String message, boolean recurse, boolean noUnlock) throws ClientException { synchronized(clazz) { return worker.commit(path, message, recurse, noUnlock); } } /** * Lock a working copy item * * @param path path of the item * @param comment * @param force break an existing lock * @throws ClientException * @since 1.2 */ public void lock(String[] path, String comment, boolean force) throws ClientException { synchronized(clazz) { worker.lock(path, comment, force); } } /** * Unlock a working copy item * * @param path path of the item * @param force break an existing lock * @throws ClientException * @since 1.2 */ public void unlock(String[] path, boolean force) throws ClientException { synchronized(clazz) { worker.unlock(path, force); } } /** * Retrieve information about repository or working copy items. * * @param pathOrUrl the path or the url of the item * @param revision the revision of the item to return * @param pegRevision the revision to interpret pathOrUrl * @param recurse flag if to recurse, if the item is a directory * @return the information objects * @since 1.2 */ public Info2[] info2(String pathOrUrl, Revision revision, Revision pegRevision, boolean recurse) throws ClientException { synchronized(clazz) { return worker.info2(pathOrUrl, revision, pegRevision, recurse); } } /** * Produce a compact "version number" for a working copy * @param path path of the working copy * @param trailUrl to detect switches of the whole working copy * @param lastChanged last changed rather than current revisions * @return the compact "version number" * @throws ClientException * @since 1.2 */ public String getVersionInfo(String path, String trailUrl, boolean lastChanged) throws ClientException { synchronized(clazz) { return worker.getVersionInfo(path, trailUrl, lastChanged); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -