/** * @param file * @param revision * @param recursive * @param force * @return actual revision number * @throws SVNException * @deprecated use {@link #doUpdate(File, SVNRevision, SVNDepth, boolean, boolean)} instead */ public long doUpdate(File file, SVNRevision revision, boolean recursive, boolean force) throws SVNException { return doUpdate(file, revision, SVNDepth.fromRecurse(recursive), force, false); }
/** * @param file * @param revision * @param recursive * @param force * @return actual revision number * @throws SVNException * @deprecated use {@link #doUpdate(File, SVNRevision, SVNDepth, boolean, boolean)} instead */ public long doUpdate(File file, SVNRevision revision, boolean recursive, boolean force) throws SVNException { return doUpdate(file, revision, SVNDepth.fromRecurse(recursive), force, false); }
/** * Resolves a 'conflicted' state on a Working Copy item. * * @param path a WC item to be resolved * @param recursive <span class="javakeyword">true</span> to * descend recursively (relevant for directories) - this * will resolve the entire tree * @throws SVNException if <code>path</code> is not under version control * @deprecated use {@link #doResolve(File, SVNDepth, SVNConflictChoice)} instead */ public void doResolve(File path, boolean recursive) throws SVNException { doResolve(path, SVNDepth.fromRecurse(recursive), SVNConflictChoice.MERGED); }
/** * Resolves a 'conflicted' state on a Working Copy item. * * @param path a WC item to be resolved * @param recursive <span class="javakeyword">true</span> to * descend recursively (relevant for directories) - this * will resolve the entire tree * @throws SVNException if <code>path</code> is not under version control * @deprecated use {@link #doResolve(File, SVNDepth, SVNConflictChoice)} instead */ public void doResolve(File path, boolean recursive) throws SVNException { doResolve(path, SVNDepth.fromRecurse(recursive), SVNConflictChoice.MERGED); }
/** * @param url * @param dstPath * @param pegRevision * @param revision * @param recursive * @param force * @return actual revision number * @throws SVNException * @deprecated use {@link #doCheckout(SVNURL, File, SVNRevision, SVNRevision, SVNDepth, boolean)} instead */ public long doCheckout(SVNURL url, File dstPath, SVNRevision pegRevision, SVNRevision revision, boolean recursive, boolean force) throws SVNException { return doCheckout(url, dstPath, pegRevision, revision, SVNDepth.fromRecurse(recursive), force); }
/** * @param file * @param revision * @param recursive * @param force * @return actual revision number * @throws SVNException * @deprecated use * {@link #doUpdate(File, SVNRevision, SVNDepth, boolean, boolean)} * instead */ public long doUpdate(File file, SVNRevision revision, boolean recursive, boolean force) throws SVNException { return doUpdate(file, revision, SVNDepth.fromRecurse(recursive), force, false); }
/** * @param file * @param revision * @param recursive * @param force * @return actual revision number * @throws SVNException * @deprecated use * {@link #doUpdate(File,SVNRevision,SVNDepth,boolean,boolean)} * instead */ public long doUpdate(File file, SVNRevision revision, boolean recursive, boolean force) throws SVNException { return doUpdate(file, revision, SVNDepth.fromRecurse(recursive), force, false); }
/** * @param url * @param dstPath * @param pegRevision * @param revision * @param recursive * @param force * @return actual revision number * @throws SVNException * @deprecated use {@link #doCheckout(SVNURL, File, SVNRevision, SVNRevision, SVNDepth, boolean)} instead */ public long doCheckout(SVNURL url, File dstPath, SVNRevision pegRevision, SVNRevision revision, boolean recursive, boolean force) throws SVNException { return doCheckout(url, dstPath, pegRevision, revision, SVNDepth.fromRecurse(recursive), force); }
/** * @param url * @param dstPath * @param pegRevision * @param revision * @param recursive * @param force * @return actual revision number * @throws SVNException * @deprecated use * {@link #doCheckout(SVNURL,File,SVNRevision,SVNRevision,SVNDepth,boolean)} * instead */ public long doCheckout(SVNURL url, File dstPath, SVNRevision pegRevision, SVNRevision revision, boolean recursive, boolean force) throws SVNException { return doCheckout(url, dstPath, pegRevision, revision, SVNDepth.fromRecurse(recursive), force); }
/** * Resolves a 'conflicted' state on a Working Copy item. * * @param path * a WC item to be resolved * @param recursive * <span class="javakeyword">true</span> to descend recursively * (relevant for directories) - this will resolve the entire tree * @throws SVNException * if <code>path</code> is not under version control * @deprecated use {@link #doResolve(File, SVNDepth, SVNConflictChoice)} * instead */ public void doResolve(File path, boolean recursive) throws SVNException { doResolve(path, SVNDepth.fromRecurse(recursive), SVNConflictChoice.MINE_FULL); }
/** * @param url * @param dstPath * @param pegRevision * @param revision * @param recursive * @param force * @return actual revision number * @throws SVNException * @deprecated use * {@link #doCheckout(SVNURL, File, SVNRevision, SVNRevision, SVNDepth, boolean)} * instead */ public long doCheckout(SVNURL url, File dstPath, SVNRevision pegRevision, SVNRevision revision, boolean recursive, boolean force) throws SVNException { return doCheckout(url, dstPath, pegRevision, revision, SVNDepth.fromRecurse(recursive), force); }
/** * Resolves a 'conflicted' state on a Working Copy item. * * @param path * a WC item to be resolved * @param recursive * <span class="javakeyword">true</span> to descend recursively * (relevant for directories) - this will resolve the entire tree * @throws SVNException * if <code>path</code> is not under version control * @deprecated use {@link #doResolve(File,SVNDepth,SVNConflictChoice)} * instead */ public void doResolve(File path, boolean recursive) throws SVNException { doResolve(path, SVNDepth.fromRecurse(recursive), SVNConflictChoice.MERGED); }
/** * This method is analogous to * <code>diff(SVNURL, long, long, String, boolean, boolean, boolean, ISVNReporterBaton, ISVNEditor)</code>. * * @param url * @param targetRevision * @param revision * @param target * @param ignoreAncestry * @param recursive * @param reporter * @param editor * @throws SVNException * @deprecated use {@link #diff(SVNURL, long, long, String, boolean, SVNDepth, boolean, ISVNReporterBaton, ISVNEditor)} * instead */ public void diff(SVNURL url, long targetRevision, long revision, String target, boolean ignoreAncestry, boolean recursive, ISVNReporterBaton reporter, ISVNEditor editor) throws SVNException { diff(url, targetRevision, revision, target, ignoreAncestry, SVNDepth.fromRecurse(recursive), true, reporter, editor); }
/** * This method is analogous to * <code>diff(SVNURL, long, long, String, boolean, boolean, boolean, ISVNReporterBaton, ISVNEditor)</code>. * * @param url * @param targetRevision * @param revision * @param target * @param ignoreAncestry * @param recursive * @param reporter * @param editor * @throws SVNException * @deprecated use {@link #diff(SVNURL, long, long, String, boolean, SVNDepth, boolean, ISVNReporterBaton, ISVNEditor)} * instead */ public void diff(SVNURL url, long targetRevision, long revision, String target, boolean ignoreAncestry, boolean recursive, ISVNReporterBaton reporter, ISVNEditor editor) throws SVNException { diff(url, targetRevision, revision, target, ignoreAncestry, SVNDepth.fromRecurse(recursive), true, reporter, editor); }
/** * 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.fromRecurse(recursive), null); }
/** * This method is analogous to * <code>diff(SVNURL, long, long, String, boolean, boolean, boolean, ISVNReporterBaton, ISVNEditor)</code>. * * @param url * @param targetRevision * @param revision * @param target * @param ignoreAncestry * @param recursive * @param reporter * @param editor * @throws SVNException * @deprecated use {@link #diff(SVNURL, long, long, String, boolean, SVNDepth, boolean, ISVNReporterBaton, ISVNEditor)} * instead */ public void diff(SVNURL url, long targetRevision, long revision, String target, boolean ignoreAncestry, boolean recursive, ISVNReporterBaton reporter, ISVNEditor editor) throws SVNException { diff(url, targetRevision, revision, target, ignoreAncestry, SVNDepth.fromRecurse(recursive), true, reporter, editor); }
/** * Brings the Working Copy item up-to-date with repository changes at the specified * revision. * * <p> * As a revision <b>SVNRevision</b>'s pre-defined constant fields can be used. For example, * to update the Working Copy to the latest revision of the repository use * {@link SVNRevision#HEAD HEAD}. * * @param file the Working copy item to be updated * @param revision the desired revision against which the item will be updated * @param recursive if <span class="javakeyword">true</span> and <code>file</code> is * a directory then the entire tree will be updated, otherwise if * <span class="javakeyword">false</span> - only items located immediately * in the directory itself * @return the revision number to which <code>file</code> was updated to * @throws SVNException * @deprecated use {@link #doUpdate(File, SVNRevision, SVNDepth, boolean, boolean)} instead */ public long doUpdate(File file, SVNRevision revision, boolean recursive) throws SVNException { return doUpdate(file, revision, SVNDepth.fromRecurse(recursive), false, false); }
/** * Brings the Working Copy item up-to-date with repository changes at the specified * revision. * * <p> * As a revision <b>SVNRevision</b>'s pre-defined constant fields can be used. For example, * to update the Working Copy to the latest revision of the repository use * {@link SVNRevision#HEAD HEAD}. * * @param file the Working copy item to be updated * @param revision the desired revision against which the item will be updated * @param recursive if <span class="javakeyword">true</span> and <code>file</code> is * a directory then the entire tree will be updated, otherwise if * <span class="javakeyword">false</span> - only items located immediately * in the directory itself * @return the revision number to which <code>file</code> was updated to * @throws SVNException * @deprecated use {@link #doUpdate(File, SVNRevision, SVNDepth, boolean, boolean)} instead */ public long doUpdate(File file, SVNRevision revision, boolean recursive) throws SVNException { return doUpdate(file, revision, SVNDepth.fromRecurse(recursive), false, false); }
/** * Brings the Working Copy item up-to-date with repository changes at the * specified revision. * <p> * As a revision <b>SVNRevision</b>'s pre-defined constant fields can be * used. For example, to update the Working Copy to the latest revision of * the repository use {@link SVNRevision#HEAD HEAD}. * * @param file * the Working copy item to be updated * @param revision * the desired revision against which the item will be updated * @param recursive * if <span class="javakeyword">true</span> and <code>file</code> * is a directory then the entire tree will be updated, otherwise * if <span class="javakeyword">false</span> - only items located * immediately in the directory itself * @return the revision number to which <code>file</code> was updated to * @throws SVNException * @deprecated use * {@link #doUpdate(File,SVNRevision,SVNDepth,boolean,boolean)} * instead */ public long doUpdate(File file, SVNRevision revision, boolean recursive) throws SVNException { return doUpdate(file, revision, SVNDepth.fromRecurse(recursive), false, false); }
@Override public void init(RepositoryDefinition repo, File dir, ProjectTeamSettings teamSettings) throws Exception { config = repo; baseDirectory = dir; String predefinedUser = repo.getOtherAttributes().get(new QName("svnUsername")); String predefinedPass = repo.getOtherAttributes().get(new QName("svnPassword")); if (predefinedUser == null) { predefinedUser = SVNURL.parseURIEncoded(repo.getUrl()).getUserInfo(); } ISVNOptions options = SVNWCUtil.createDefaultOptions(true); ISVNAuthenticationManager authManager = new SVNAuthenticationManager(repo.getUrl(), predefinedUser, predefinedPass, teamSettings); ourClientManager = SVNClientManager.newInstance(options, authManager); if (baseDirectory.exists()) { ourClientManager.getWCClient().doCleanup(baseDirectory); ourClientManager.getWCClient().doRevert(new File[] { baseDirectory }, SVNDepth.fromRecurse(true), null); } }