/** * Returns the current Working Copy min- and max- revisions as well as * changes and switch status within a single string. * * <p/> * This method is the same as <code>doGetWorkingCopyID(path, trailURL, false)</code>. * * @param path a local path * @param trailURL optional: if not <span class="javakeyword">null</span> * specifies the name of the item that should be met * in the URL corresponding to the repository location * of the <code>path</code>; if that URL ends with something * different than this optional parameter - the Working * Copy will be considered "switched" * @return brief info on the Working Copy or the string * "exported" if <code>path</code> is a clean directory * @throws SVNException if <code>path</code> is neither versioned nor * even exported * @see #doGetWorkingCopyID(File, String, boolean) */ public String doGetWorkingCopyID(final File path, String trailURL) throws SVNException { return doGetWorkingCopyID(path, trailURL, false); }
/** * Returns the current Working Copy min- and max- revisions as well as * changes and switch status within a single string. * * <p/> * This method is the same as <code>doGetWorkingCopyID(path, trailURL, false)</code>. * * @param path a local path * @param trailURL optional: if not <span class="javakeyword">null</span> * specifies the name of the item that should be met * in the URL corresponding to the repository location * of the <code>path</code>; if that URL ends with something * different than this optional parameter - the Working * Copy will be considered "switched" * @return brief info on the Working Copy or the string * "exported" if <code>path</code> is a clean directory * @throws SVNException if <code>path</code> is neither versioned nor * even exported * @see #doGetWorkingCopyID(File, String, boolean) */ public String doGetWorkingCopyID(final File path, String trailURL) throws SVNException { return doGetWorkingCopyID(path, trailURL, false); }
/** * Returns the current Working Copy min- and max- revisions as well as * changes and switch status within a single string. * * <p/> * This method is the same as * <code>doGetWorkingCopyID(path, trailURL, false)</code>. * * @param path * a local path * @param trailURL * optional: if not <span class="javakeyword">null</span> * specifies the name of the item that should be met in the URL * corresponding to the repository location of the * <code>path</code>; if that URL ends with something different * than this optional parameter - the Working Copy will be * considered "switched" * @return brief info on the Working Copy or the string "exported" if * <code>path</code> is a clean directory * @throws SVNException * if <code>path</code> is neither versioned nor even exported * @see #doGetWorkingCopyID(File, String, boolean) */ public String doGetWorkingCopyID(final File path, String trailURL) throws SVNException { return doGetWorkingCopyID(path, trailURL, false); }
public String getVersionInfo(String path, String trailUrl, boolean lastChanged) throws ClientException { try { return getSVNWCClient().doGetWorkingCopyID(new File(path).getAbsoluteFile(), trailUrl); } catch (SVNException e) { throwException(e); } return null; }
public String getVersionInfo(String path, String trailUrl, boolean lastChanged) throws ClientException { try { return getSVNWCClient().doGetWorkingCopyID(new File(path).getAbsoluteFile(), trailUrl); } catch (SVNException e) { throwException(e); } finally { resetLog(); } return null; }
public String getVersionInfo(String path, String trailUrl, boolean lastChanged) throws ClientException { try { return getSVNWCClient().doGetWorkingCopyID(new File(path).getAbsoluteFile(), trailUrl); } catch (SVNException e) { throwException(e); } finally { resetLog(); } return null; }
public String getVersionInfo(String path, String trailUrl, boolean lastChanged) throws ClientException { try { return getSVNWCClient().doGetWorkingCopyID(new File(path).getAbsoluteFile(), trailUrl); } catch (SVNException e) { throwException(e); } finally { resetLog(); } return null; }
public void run() throws SVNException { List targets = getEnvironment().combineTargets(null, false); if (targets.isEmpty()) { targets.add(""); } SVNPath target = new SVNPath((String) targets.get(0)); if (target.isURL()) { target = new SVNPath(""); targets.add(0, ""); } String trailURL = (String) (targets.size() > 1 ? targets.get(1) : null); if (target.isFile()) { String id = SVNClientManager.newInstance().getWCClient().doGetWorkingCopyID(target.getFile(), trailURL, getSVNVersionEnvironment().isCommitted()); if (id != null) { getEnvironment().getOut().print(id); if (!getSVNVersionEnvironment().isNoNewLine()) { getEnvironment().getOut().println(); } } } }
public void run() throws SVNException { List targets = getEnvironment().combineTargets(null, false); if (targets.isEmpty()) { targets.add(""); } SVNPath target = new SVNPath((String) targets.get(0)); if (target.isURL()) { target = new SVNPath(""); targets.add(0, ""); } String trailURL = (String) (targets.size() > 1 ? targets.get(1) : null); if (target.isFile()) { String id = SVNClientManager.newInstance().getWCClient().doGetWorkingCopyID(target.getFile(), trailURL, getSVNVersionEnvironment().isCommitted()); if (id != null) { getEnvironment().getOut().print(id); if (!getSVNVersionEnvironment().isNoNewLine()) { getEnvironment().getOut().println(); } } } }