@Override public void initDefaults() { super.initDefaults(); setFetchActualOnly(true); setFetchExcluded(true); }
private void doExternalsInfo(Map<File, File> externals, SVNDepth depth) throws SVNException { for (Map.Entry<File, File> entry : externals.entrySet()) { final File localAbsPath = entry.getKey(); final File definingAbsPath = entry.getValue(); final Structure<StructureFields.ExternalNodeInfo> externalNodeInfoStructure = SvnWcDbExternals.readExternal(getWcContext(), localAbsPath, definingAbsPath, StructureFields.ExternalNodeInfo.kind, StructureFields.ExternalNodeInfo.revision); if (externalNodeInfoStructure != null) { ISVNWCDb.SVNWCDbKind externalKind = externalNodeInfoStructure.get(StructureFields.ExternalNodeInfo.kind); long optRev = externalNodeInfoStructure.lng(StructureFields.ExternalNodeInfo.revision); if (externalKind != SVNWCDbKind.Dir) { continue; } final SVNNodeKind kind = SVNFileType.getNodeKind(SVNFileType.getType(localAbsPath)); if (kind != SVNNodeKind.DIR) { continue; } handleEvent(SVNEventFactory.createSVNEvent(localAbsPath, SVNNodeKind.UNKNOWN, null, SVNRepository.INVALID_REVISION, SVNStatusType.UNKNOWN, SVNStatusType.UNKNOWN, SVNStatusType.LOCK_UNKNOWN, SVNEventAction.INFO_EXTERNAL, SVNEventAction.INFO_EXTERNAL, null, null)); final SvnOperationFactory operationFactory = getOperation().getOperationFactory(); final SvnGetInfo getInfo = operationFactory.createGetInfo(); getInfo.setSingleTarget(SvnTarget.fromFile(localAbsPath)); getInfo.setFetchExcluded(getOperation().isFetchExcluded()); getInfo.setFetchActualOnly(getOperation().isFetchActualOnly()); getInfo.setIncludeExternals(getOperation().isIncludeExternals()); getInfo.run(); } } }
public void info(String pathOrUrl, Revision revision, Revision pegRevision, Depth depth, boolean fetchExcluded, boolean fetchActualOnly, boolean includeExternals, Collection<String> changelists, InfoCallback callback) throws ClientException { beforeOperation(); try { getEventHandler().setPathPrefix(getPathPrefix(pathOrUrl)); SvnGetInfo info = svnOperationFactory.createGetInfo(); info.setSingleTarget(getTarget(pathOrUrl, pegRevision)); info.setRevision(getSVNRevision(revision)); info.setDepth(getSVNDepth(depth)); info.setFetchExcluded(fetchExcluded); info.setFetchActualOnly(fetchActualOnly); info.setIncludeExternals(includeExternals); info.setApplicalbeChangelists(changelists); info.setReceiver(getInfoReceiver(callback)); info.run(); } catch (SVNException e) { throw getClientException(e); } finally { afterOperation(); } }