/** * Returns the SVNDepth to use for reverting the module if svn up with revert before is selected * * This is normally the requested SVN depth except when the user * has requested as-it-is and then we use infinity to actually revert everything * * @return {@link org.tmatesoft.svn.core.SVNDepth} value. */ public SVNDepth getSvnDepthForRevert() { if("unknown".equals(getDepthOption()) || "as-it-is-infinity".equals(getDepthOption())){ return SVNDepth.INFINITY; }else { return getSvnDepth(getDepthOption()); } }
/** * Returns the SVNDepth to use for checking out the module. * * This is normally the requested SVN depth except when the user * has requested as-it-is and then we use files so that we don't check * everything out. * * @return {@link org.tmatesoft.svn.core.SVNDepth} value. */ public SVNDepth getSvnDepthForCheckout() { if("unknown".equals(getDepthOption())) { return SVNDepth.FILES; } else if ("as-it-is-infinity".equals(getDepthOption())){ return SVNDepth.INFINITY; } else { return getSvnDepth(getDepthOption()); } }
/** * Returns the SVNDepth to use for updating the module. * * This is just mapping the depthOption to an SVN Depth * * @return {@link org.tmatesoft.svn.core.SVNDepth} value. */ public SVNDepth getSvnDepthForUpdate() { return getSvnDepth(getDepthOption()); }