/** * @param versionedDir a versioned directory to check * @param externalIsRoot * @return <span class="javakeyword">true</span> if * <code>versionedDir</code> is versioned and the WC root * (or the root of externals if <code>considerExternalAsRoot</code> * is <span class="javakeyword">true</span>), otherwise <span class="javakeyword">false</span> * @throws SVNException * @deprecated use {@link #isWorkingCopyRoot(File)}} instead */ public static boolean isWorkingCopyRoot(final File versionedDir, boolean externalIsRoot) throws SVNException { if (isWorkingCopyRoot(versionedDir)) { if (!externalIsRoot) { return true; } File root = getWorkingCopyRoot(versionedDir, false); return root.equals(versionedDir); } return false; }
protected String getWCRootPath() { if (myWCRootPath == null) { try { File root = SVNWCUtil.getWorkingCopyRoot(myAdminInfo.getAnchor().getRoot(), true); if (root != null) { myWCRootPath = root.getAbsolutePath().replace(File.separatorChar, '/'); } } catch (SVNException e) { // ignore. } } return myWCRootPath; }
protected String getWCRootPath() { if (myWCRootPath == null) { try { File root = SVNWCUtil.getWorkingCopyRoot(myAdminInfo.getAnchor().getRoot(), true); if (root != null) { myWCRootPath = root.getAbsolutePath().replace(File.separatorChar, '/'); } } catch (SVNException e) { // ignore. } } return myWCRootPath; }
/** * @param versionedDir * a versioned directory to check * @param externalIsRoot * @return <span class="javakeyword">true</span> if * <code>versionedDir</code> is versioned and the WC root (or the * root of externals if <code>considerExternalAsRoot</code> is * <span class="javakeyword">true</span>), otherwise <span * class="javakeyword">false</span> * @throws SVNException * @deprecated use {@link #isWorkingCopyRoot(File)}} instead */ public static boolean isWorkingCopyRoot(final File versionedDir, boolean externalIsRoot) throws SVNException { if (isWorkingCopyRoot(versionedDir)) { if (!externalIsRoot) { return true; } File root = getWorkingCopyRoot(versionedDir, false); return root.equals(versionedDir); } return false; }
/** * @param versionedDir * a versioned directory to check * @param externalIsRoot * @return <span class="javakeyword">true</span> if * <code>versionedDir</code> is versioned and the WC root (or the * root of externals if <code>considerExternalAsRoot</code> is * <span class="javakeyword">true</span>), otherwise <span * class="javakeyword">false</span> * @throws SVNException * @deprecated use {@link #isWorkingCopyRoot(File)}} instead */ public static boolean isWorkingCopyRoot(final File versionedDir, boolean externalIsRoot) throws SVNException { if (isWorkingCopyRoot(versionedDir)) { if (!externalIsRoot) { return true; } File root = getWorkingCopyRoot(versionedDir, false); return root.equals(versionedDir); } return false; }
rootPath = rootPath.getParentFile(); File wcRoot = localRootsCache.containsKey(rootPath) ? (File) localRootsCache.get(rootPath) : SVNWCUtil.getWorkingCopyRoot(rootPath, true); localRootsCache.put(path, wcRoot); if (!rootsMap.containsKey(wcRoot)) {
rootPath = rootPath.getParentFile(); File wcRoot = localRootsCache.containsKey(rootPath) ? (File) localRootsCache.get(rootPath) : SVNWCUtil.getWorkingCopyRoot(rootPath, true); localRootsCache.put(path, wcRoot); if (!rootsMap.containsKey(wcRoot)) {
rootPath = rootPath.getParentFile(); File wcRoot = localRootsCache.containsKey(rootPath) ? (File) localRootsCache.get(rootPath) : SVNWCUtil.getWorkingCopyRoot(rootPath, true); localRootsCache.put(path, wcRoot); if (!rootsMap.containsKey(wcRoot)) {
rootPath = rootPath.getParentFile(); File wcRoot = localRootsCache.containsKey(rootPath) ? (File) localRootsCache.get(rootPath) : SVNWCUtil.getWorkingCopyRoot(rootPath, true); localRootsCache.put(path, wcRoot); if (!rootsMap.containsKey(wcRoot)) {
File wcRoot = SVNWCUtil.getWorkingCopyRoot(dir.getRoot(), true); myWCRootPath = wcRoot.getAbsolutePath().replace(File.separatorChar, '/');
File wcRoot = SVNWCUtil.getWorkingCopyRoot(dir.getRoot(), true); myWCRootPath = wcRoot.getAbsolutePath().replace(File.separatorChar, '/');
File wcRoot = SVNWCUtil.getWorkingCopyRoot(dir.getRoot(), true); relativeToDirectory = wcRoot.getAbsolutePath().replace(File.separatorChar, '/');
return versionedDir; File parentRoot = getWorkingCopyRoot(parent, stopOnExtenrals); if (parentRoot == null) { return getWorkingCopyRoot(parent, stopOnExtenrals);
return versionedDir; File parentRoot = getWorkingCopyRoot(parent, stopOnExtenrals); if (parentRoot == null) { return getWorkingCopyRoot(parent, stopOnExtenrals);
return versionedDir; File parentRoot = getWorkingCopyRoot(parent, stopOnExtenrals); if (parentRoot == null) { return getWorkingCopyRoot(parent, stopOnExtenrals);
File wcRoot = SVNWCUtil.getWorkingCopyRoot(dir.getRoot(), true); addDirectory(wcRoot, path, dir, force, includeIgnored, depth, depthIsSticky); } else if (fileType == SVNFileType.FILE || fileType == SVNFileType.SYMLINK) {
File wcRoot = SVNWCUtil.getWorkingCopyRoot(dir.getRoot(), true); addDirectory(wcRoot, path, dir, force, includeIgnored, depth, depthIsSticky); } else if (fileType == SVNFileType.FILE || fileType == SVNFileType.SYMLINK) {
File workingCopyRoot = null; try { workingCopyRoot = SVNWCUtil.getWorkingCopyRoot(target.getFile(), true); } catch (SVNException second) { SVNErrorManager.error(e.getErrorMessage(), second.getErrorMessage(), e, SVNLogType.WC);
File workingCopyRoot = null; try { workingCopyRoot = SVNWCUtil.getWorkingCopyRoot(target.getFile(), true); } catch (SVNException second) { SVNErrorManager.error(e.getErrorMessage(), second.getErrorMessage(), e, SVNLogType.WC);
wcRoot = SVNWCUtil.getWorkingCopyRoot(info.getFile(), true); } catch (SVNException e) {