/** * Reverts all local changes made to a Working Copy item(s) thus * bringing it to a 'pristine' state. * * @param path a WC path to perform a revert on * @param recursive <span class="javakeyword">true</span> to * descend recursively (relevant for directories) * @throws SVNException if one of the following is true: * <ul> * <li><code>path</code> is not under version control * <li>when trying to revert an addition of a directory * from within the directory itself * </ul> * @see #doRevert(File[],boolean) * @deprecated use {@link #doRevert(File[], SVNDepth, Collection)} */ public void doRevert(File path, boolean recursive) throws SVNException { doRevert(new File[] { path }, SVNDepth.getInfinityOrEmptyDepth(recursive), null); }
/** * Collects information about item(s) in a repository and passes it to * an info handler. * * @param url a URL of an item which information is to be * obtained and processed * @param pegRevision a revision in which the item is first looked up * @param revision a target revision * @param recursive <span class="javakeyword">true</span> to * descend recursively (relevant for directories) * @param handler a caller's info handler * @throws SVNException if <code>url</code> is an item that does not exist in * the specified <code>revision</code> * @deprecated use {@link #doInfo(SVNURL, SVNRevision, SVNRevision, SVNDepth, ISVNInfoHandler)} instead */ public void doInfo(SVNURL url, SVNRevision pegRevision, SVNRevision revision, boolean recursive, ISVNInfoHandler handler) throws SVNException { doInfo(url, pegRevision, revision, SVNDepth.getInfinityOrEmptyDepth(recursive), handler); }
/** * Collects information about item(s) in a repository and passes it to * an info handler. * * @param url a URL of an item which information is to be * obtained and processed * @param pegRevision a revision in which the item is first looked up * @param revision a target revision * @param recursive <span class="javakeyword">true</span> to * descend recursively (relevant for directories) * @param handler a caller's info handler * @throws SVNException if <code>url</code> is an item that does not exist in * the specified <code>revision</code> * @deprecated use {@link #doInfo(SVNURL, SVNRevision, SVNRevision, SVNDepth, ISVNInfoHandler)} instead */ public void doInfo(SVNURL url, SVNRevision pegRevision, SVNRevision revision, boolean recursive, ISVNInfoHandler handler) throws SVNException { doInfo(url, pegRevision, revision, SVNDepth.getInfinityOrEmptyDepth(recursive), handler); }
/** * Reverts all local changes made to a Working Copy item(s) thus bringing it * to a 'pristine' state. * * @param path * a WC path to perform a revert on * @param recursive * <span class="javakeyword">true</span> to descend recursively * (relevant for directories) * @throws SVNException * if one of the following is true: * <ul> * <li><code>path</code> is not under version control * <li>when trying to revert an addition of a directory from * within the directory itself * </ul> * @see #doRevert(File[],boolean) * @deprecated use {@link #doRevert(File[],SVNDepth,Collection)} */ public void doRevert(File path, boolean recursive) throws SVNException { doRevert(new File[] { path }, SVNDepth.getInfinityOrEmptyDepth(recursive), null); }
/** * Reverts all local changes made to a Working Copy item(s) thus * bringing it to a 'pristine' state. * * @param path a WC path to perform a revert on * @param recursive <span class="javakeyword">true</span> to * descend recursively (relevant for directories) * @throws SVNException if one of the following is true: * <ul> * <li><code>path</code> is not under version control * <li>when trying to revert an addition of a directory * from within the directory itself * </ul> * @see #doRevert(File[],boolean) * @deprecated use {@link #doRevert(File[], SVNDepth, Collection)} */ public void doRevert(File path, boolean recursive) throws SVNException { doRevert(new File[] { path }, SVNDepth.getInfinityOrEmptyDepth(recursive), null); }
/** * Collects information about item(s) in a repository and passes it to an * info handler. * * @param url * a URL of an item which information is to be obtained and * processed * @param pegRevision * a revision in which the item is first looked up * @param revision * a target revision * @param recursive * <span class="javakeyword">true</span> to descend recursively * (relevant for directories) * @param handler * a caller's info handler * @throws SVNException * if <code>url</code> is an item that does not exist in the * specified <code>revision</code> * @deprecated use * {@link #doInfo(SVNURL,SVNRevision,SVNRevision,SVNDepth,ISVNInfoHandler)} * instead */ public void doInfo(SVNURL url, SVNRevision pegRevision, SVNRevision revision, boolean recursive, ISVNInfoHandler handler) throws SVNException { doInfo(url, pegRevision, revision, SVNDepth.getInfinityOrEmptyDepth(recursive), handler); }
/** * Collects information about item(s) in a repository and passes it to an * info handler. * * @param url * a URL of an item which information is to be obtained and * processed * @param pegRevision * a revision in which the item is first looked up * @param revision * a target revision * @param recursive * <span class="javakeyword">true</span> to descend recursively * (relevant for directories) * @param handler * a caller's info handler * @throws SVNException * if <code>url</code> is an item that does not exist in the * specified <code>revision</code> * @deprecated use * {@link #doInfo(SVNURL, SVNRevision, SVNRevision, SVNDepth, ISVNInfoHandler)} * instead */ public void doInfo(SVNURL url, SVNRevision pegRevision, SVNRevision revision, boolean recursive, ISVNInfoHandler handler) throws SVNException { doInfo(url, pegRevision, revision, SVNDepth.getInfinityOrEmptyDepth(recursive), handler); }
/** * Committs local changes to the repository. * * <p/> * This method is identical to <code>doCommit(paths, keepLocks, commitMessage, null, null, false, force, SVNDepth.fromRecurse(recursive))</code>. * * @param paths an array of local items which should be traversed * to commit changes they have to the repository * @param keepLocks if <span class="javakeyword">true</span> and there are local items that * were locked then the commit will left them locked, * otherwise the items will be unlocked after the commit * succeeds * @param commitMessage a string to be a commit log message * @param force <span class="javakeyword">true</span> to force a non-recursive commit; if * <code>recursive</code> is set to <span class="javakeyword">true</span> the <code>force</code> * flag is ignored * @param recursive relevant only for directory items: if <span class="javakeyword">true</span> then * the entire directory tree will be committed including all child directories, * otherwise only items located in the directory itself * @return information on a new revision as the result * of the commit * @throws SVNException * @deprecated use {@link #doCommit(File[], boolean, String, SVNProperties, String[], boolean, boolean, SVNDepth)} * instead */ public SVNCommitInfo doCommit(File[] paths, boolean keepLocks, String commitMessage, boolean force, boolean recursive) throws SVNException { return doCommit(paths, keepLocks, commitMessage, null, null, false, force, SVNDepth.getInfinityOrEmptyDepth(recursive)); }
/** * Collects information about Working Copy item(s) and passes it to an * info handler. * <p/> * <p/> * If <code>revision</code> & <code>pegRevision</code> are valid and not * local, then information will be collected * on remote items (that is taken from a repository). Otherwise information * is gathered on local items not accessing a repository. * * @param path a WC item on which info should be obtained * @param pegRevision a revision in which <code>path</code> is first * looked up * @param revision a target revision * @param recursive <span class="javakeyword">true</span> to * descend recursively (relevant for directories) * @param handler a caller's info handler * @throws SVNException if one of the following is true: * <ul> * <li><code>path</code> is not under version control * <li>can not obtain a URL corresponding to <code>path</code> to * get its information from the repository - there's no such entry * <li>if a remote info: <code>path</code> is an item that does not exist in * the specified <code>revision</code> * </ul> * @deprecated use {@link #doInfo(File, SVNRevision, SVNRevision, SVNDepth, Collection, ISVNInfoHandler)} instead */ public void doInfo(File path, SVNRevision pegRevision, SVNRevision revision, boolean recursive, ISVNInfoHandler handler) throws SVNException { doInfo(path, pegRevision, revision, SVNDepth.getInfinityOrEmptyDepth(recursive), null, handler); }
/** * Gets an item's versioned property from a repository and passes it to * a provided property handler. This method is useful when having no * Working Copy at all. * * @param url an item's repository location * @param propName an item's property name; if it's * <span class="javakeyword">null</span> then * all the item's properties will be retrieved * and passed to <code>handler</code> for * processing * @param pegRevision a revision in which the item is first looked up * @param revision a target revision * @param recursive <span class="javakeyword">true</span> to * descend recursively * @param handler a caller's property handler * @throws SVNException if <code>propName</code> starts * with the {@link org.tmatesoft.svn.core.SVNProperty#SVN_WC_PREFIX * svn:wc:} prefix * @deprecated use {@link #doGetProperty(SVNURL, String, SVNRevision, SVNRevision, SVNDepth, ISVNPropertyHandler)} instead */ public void doGetProperty(SVNURL url, String propName, SVNRevision pegRevision, SVNRevision revision, boolean recursive, ISVNPropertyHandler handler) throws SVNException { doGetProperty(url, propName, pegRevision, revision, SVNDepth.getInfinityOrEmptyDepth(recursive), handler); }
/** * Gets an item's versioned property from a repository and passes it to * a provided property handler. This method is useful when having no * Working Copy at all. * * @param url an item's repository location * @param propName an item's property name; if it's * <span class="javakeyword">null</span> then * all the item's properties will be retrieved * and passed to <code>handler</code> for * processing * @param pegRevision a revision in which the item is first looked up * @param revision a target revision * @param recursive <span class="javakeyword">true</span> to * descend recursively * @param handler a caller's property handler * @throws SVNException if <code>propName</code> starts * with the {@link org.tmatesoft.svn.core.SVNProperty#SVN_WC_PREFIX * svn:wc:} prefix * @deprecated use {@link #doGetProperty(SVNURL, String, SVNRevision, SVNRevision, SVNDepth, ISVNPropertyHandler)} instead */ public void doGetProperty(SVNURL url, String propName, SVNRevision pegRevision, SVNRevision revision, boolean recursive, ISVNPropertyHandler handler) throws SVNException { doGetProperty(url, propName, pegRevision, revision, SVNDepth.getInfinityOrEmptyDepth(recursive), handler); }
/** * Collects information about Working Copy item(s) and passes it to an * info handler. * <p/> * <p/> * If <code>revision</code> & <code>pegRevision</code> are valid and not * local, then information will be collected * on remote items (that is taken from a repository). Otherwise information * is gathered on local items not accessing a repository. * * @param path a WC item on which info should be obtained * @param pegRevision a revision in which <code>path</code> is first * looked up * @param revision a target revision * @param recursive <span class="javakeyword">true</span> to * descend recursively (relevant for directories) * @param handler a caller's info handler * @throws SVNException if one of the following is true: * <ul> * <li><code>path</code> is not under version control * <li>can not obtain a URL corresponding to <code>path</code> to * get its information from the repository - there's no such entry * <li>if a remote info: <code>path</code> is an item that does not exist in * the specified <code>revision</code> * </ul> * @deprecated use {@link #doInfo(File, SVNRevision, SVNRevision, SVNDepth, Collection, ISVNInfoHandler)} instead */ public void doInfo(File path, SVNRevision pegRevision, SVNRevision revision, boolean recursive, ISVNInfoHandler handler) throws SVNException { doInfo(path, pegRevision, revision, SVNDepth.getInfinityOrEmptyDepth(recursive), null, handler); }
/** * This method is deprecated. * * @param path a WC item which properties are to be * modified * @param propName a property name * @param propValue a property value * @param force <span class="javakeyword">true</span> to * force the operation to run * @param recursive <span class="javakeyword">true</span> to * descend recursively * @param handler a caller's property handler * @throws SVNException if one of the following is true: * <ul> * <li><code>propName</code> is a revision * property * <li><code>propName</code> starts * with the {@link org.tmatesoft.svn.core.SVNProperty#SVN_WC_PREFIX * svn:wc:} prefix * </ul> * @deprecated use {@link #doSetProperty(File, String, SVNPropertyValue, boolean, SVNDepth, ISVNPropertyHandler, Collection)} * instead */ public void doSetProperty(File path, String propName, SVNPropertyValue propValue, boolean force, boolean recursive, ISVNPropertyHandler handler) throws SVNException { doSetProperty(path, propName, propValue, force, SVNDepth.getInfinityOrEmptyDepth(recursive), handler, null); }
/** * Collects information about Working Copy item(s) and passes it to an * info handler. * <p/> * <p/> * If <code>revision</code> is valid and not local, * then information will be collected on remote items (that is taken from * a repository). Otherwise information is gathered on local items not * accessing a repository. * * @param path a WC item on which info should be obtained * @param revision a target revision * @param recursive <span class="javakeyword">true</span> to * descend recursively (relevant for directories) * @param handler a caller's info handler * @throws SVNException if one of the following is true: * <ul> * <li><code>path</code> is not under version control * <li>can not obtain a URL corresponding to <code>path</code> to * get its information from the repository - there's no such entry * <li>if a remote info: <code>path</code> is an item that does not exist in * the specified <code>revision</code> * </ul> * @deprecated use {@link #doInfo(File, SVNRevision, SVNRevision, SVNDepth, Collection, ISVNInfoHandler)} instead */ public void doInfo(File path, SVNRevision revision, boolean recursive, ISVNInfoHandler handler) throws SVNException { doInfo(path, SVNRevision.UNDEFINED, revision, SVNDepth.getInfinityOrEmptyDepth(recursive), null, handler); }
doGetProperty(url, propName, pegRevision, revision, SVNDepth.getInfinityOrEmptyDepth(recursive), handler);
doGetProperty(url, propName, pegRevision, revision, SVNDepth.getInfinityOrEmptyDepth(recursive), handler);
return doCommit(paths, keepLocks, commitMessage, null, null, false, force, SVNDepth.getInfinityOrEmptyDepth(recursive));
/** * Collects information about Working Copy item(s) and passes it to an * info handler. * <p/> * <p/> * If <code>revision</code> is valid and not local, * then information will be collected on remote items (that is taken from * a repository). Otherwise information is gathered on local items not * accessing a repository. * * @param path a WC item on which info should be obtained * @param revision a target revision * @param recursive <span class="javakeyword">true</span> to * descend recursively (relevant for directories) * @param handler a caller's info handler * @throws SVNException if one of the following is true: * <ul> * <li><code>path</code> is not under version control * <li>can not obtain a URL corresponding to <code>path</code> to * get its information from the repository - there's no such entry * <li>if a remote info: <code>path</code> is an item that does not exist in * the specified <code>revision</code> * </ul> * @deprecated use {@link #doInfo(File, SVNRevision, SVNRevision, SVNDepth, Collection, ISVNInfoHandler)} instead */ public void doInfo(File path, SVNRevision revision, boolean recursive, ISVNInfoHandler handler) throws SVNException { doInfo(path, SVNRevision.UNDEFINED, revision, SVNDepth.getInfinityOrEmptyDepth(recursive), null, handler); }
/** * Committs local changes to the repository. * * <p/> * This method is identical to <code>doCommit(paths, keepLocks, commitMessage, null, null, false, force, SVNDepth.fromRecurse(recursive))</code>. * * @param paths an array of local items which should be traversed * to commit changes they have to the repository * @param keepLocks if <span class="javakeyword">true</span> and there are local items that * were locked then the commit will left them locked, * otherwise the items will be unlocked after the commit * succeeds * @param commitMessage a string to be a commit log message * @param force <span class="javakeyword">true</span> to force a non-recursive commit; if * <code>recursive</code> is set to <span class="javakeyword">true</span> the <code>force</code> * flag is ignored * @param recursive relevant only for directory items: if <span class="javakeyword">true</span> then * the entire directory tree will be committed including all child directories, * otherwise only items located in the directory itself * @return information on a new revision as the result * of the commit * @throws SVNException * @deprecated use {@link #doCommit(File[], boolean, String, SVNProperties, String[], boolean, boolean, SVNDepth)} * instead */ public SVNCommitInfo doCommit(File[] paths, boolean keepLocks, String commitMessage, boolean force, boolean recursive) throws SVNException { return doCommit(paths, keepLocks, commitMessage, null, null, false, force, SVNDepth.getInfinityOrEmptyDepth(recursive)); }
/** * This method is deprecated. * * @param path a WC item which properties are to be * modified * @param propName a property name * @param propValue a property value * @param force <span class="javakeyword">true</span> to * force the operation to run * @param recursive <span class="javakeyword">true</span> to * descend recursively * @param handler a caller's property handler * @throws SVNException if one of the following is true: * <ul> * <li><code>propName</code> is a revision * property * <li><code>propName</code> starts * with the {@link org.tmatesoft.svn.core.SVNProperty#SVN_WC_PREFIX * svn:wc:} prefix * </ul> * @deprecated use {@link #doSetProperty(File, String, SVNPropertyValue, boolean, SVNDepth, ISVNPropertyHandler, Collection)} * instead */ public void doSetProperty(File path, String propName, SVNPropertyValue propValue, boolean force, boolean recursive, ISVNPropertyHandler handler) throws SVNException { doSetProperty(path, propName, propValue, force, SVNDepth.getInfinityOrEmptyDepth(recursive), handler, null); }