public static void switchToBranch(final String branchUrl, final File basedir, final ISVNDebugLog log) throws SVNException, IOException{ final SVNUpdateClient updateClient = SVNClientManager .newInstance().getUpdateClient(); if(log != null) updateClient.setDebugLog(log); updateClient.doSwitch(basedir, SVNURL.parseURIEncoded(branchUrl), SVNRevision.HEAD, SVNRevision.HEAD, SVNDepth.INFINITY, false, false); }
/** * Returns an instance of the {@link SVNUpdateClient} class. * * <p> * If it's the first time this method is being called the object is * created, initialized and then returned. Further calls to this * method will get the same object instantiated at that moment of * the first call. <b>SVNClientManager</b> does not reinstantiate * its <b>SVN</b>*<b>Client</b> objects. * * @return an <b>SVNUpdateClient</b> instance */ public SVNUpdateClient getUpdateClient() { if (myUpdateClient == null) { myUpdateClient = new SVNUpdateClient(this, myOptions); myUpdateClient.setEventHandler(myEventHandler); myUpdateClient.setDebugLog(getDebugLog()); } return myUpdateClient; }
/** * Returns an instance of the {@link SVNUpdateClient} class. * * <p> * If it's the first time this method is being called the object is * created, initialized and then returned. Further calls to this * method will get the same object instantiated at that moment of * the first call. <b>SVNClientManager</b> does not reinstantiate * its <b>SVN</b>*<b>Client</b> objects. * * @return an <b>SVNUpdateClient</b> instance */ public SVNUpdateClient getUpdateClient() { if (myUpdateClient == null) { myUpdateClient = new SVNUpdateClient(this, myOptions); myUpdateClient.setEventHandler(myEventHandler); myUpdateClient.setDebugLog(getDebugLog()); myUpdateClient.setIgnoreExternals(myIsIgnoreExternals); } return myUpdateClient; }
/** * Returns an instance of the {@link SVNUpdateClient} class. * * <p> * If it's the first time this method is being called the object is * created, initialized and then returned. Further calls to this * method will get the same object instantiated at that moment of * the first call. <b>SVNClientManager</b> does not reinstantiate * its <b>SVN</b>*<b>Client</b> objects. * * @return an <b>SVNUpdateClient</b> instance */ public SVNUpdateClient getUpdateClient() { if (myUpdateClient == null) { myUpdateClient = new SVNUpdateClient(this, myOptions); myUpdateClient.setEventHandler(myEventHandler); myUpdateClient.setDebugLog(getDebugLog()); myUpdateClient.setIgnoreExternals(myIsIgnoreExternals); } return myUpdateClient; }
myUpdateClient.setDebugLog(log);
myUpdateClient.setDebugLog(log);
myUpdateClient.setDebugLog(log);
myUpdateClient.setDebugLog(log);