Map autoProperties = new SVNHashMap(); if (fileType != SVNFileType.SYMLINK) { autoProperties = SVNPropertiesManager.computeAutoProperties(getOptions(), file, autoProperties); } else { autoProperties.put(SVNProperty.SPECIAL, "*"); SVNTranslator.getCharset(value, filePath, getOptions()); } catch (SVNException e) { continue; handleEvent(addedEvent, ISVNEventHandler.UNKNOWN); String charset = SVNTranslator.getCharset((String) autoProperties.get(SVNProperty.CHARSET), file.getPath(), getOptions()); String eolStyle = (String) autoProperties.get(SVNProperty.EOL_STYLE); String keywords = (String) autoProperties.get(SVNProperty.KEYWORDS); if (charset != null || eolStyle != null || keywords != null || special) { byte[] eolBytes = SVNTranslator.getBaseEOL(eolStyle); Map keywordsMap = keywords != null ? SVNTranslator.computeKeywords(keywords, null, null, null, null, getOptions()) : null; tmpFile = SVNFileUtil.createTempFile("import", ".tmp"); SVNTranslator.translate(file, tmpFile, charset, eolBytes, keywordsMap, special, false);
Map autoProperties = new SVNHashMap(); if (fileType != SVNFileType.SYMLINK) { autoProperties = SVNPropertiesManager.computeAutoProperties(getOptions(), file, autoProperties); } else { autoProperties.put(SVNProperty.SPECIAL, "*"); SVNTranslator.getCharset(value, mimeTypeProperty, filePath, getOptions()); } catch (SVNException e) { continue; handleEvent(addedEvent, ISVNEventHandler.UNKNOWN); String charset = SVNTranslator.getCharset((String) autoProperties.get(SVNProperty.CHARSET), mimeTypeProperty, file.getPath(), getOptions()); String eolStyle = (String) autoProperties.get(SVNProperty.EOL_STYLE); String keywords = (String) autoProperties.get(SVNProperty.KEYWORDS); if (charset != null || eolStyle != null || keywords != null || special) { byte[] eolBytes = SVNTranslator.getBaseEOL(eolStyle); Map keywordsMap = keywords != null ? SVNTranslator.computeKeywords(keywords, null, null, null, null, getOptions()) : null; tmpFile = SVNFileUtil.createTempFile("import", ".tmp"); SVNTranslator.translate(file, tmpFile, charset, eolBytes, keywordsMap, special, false);
Map autoProperties = new HashMap(); if (fileType != SVNFileType.SYMLINK) { autoProperties = getOptions().applyAutoProperties(file, autoProperties); if (!autoProperties.containsKey(SVNProperty.MIME_TYPE)) { mimeType = SVNFileUtil.detectMimeType(file);
continue; if (useGlobalIgnores && getOptions().isIgnored(file.getName())) { continue;
SVNStatusClient statusClient = new SVNStatusClient(getRepositoryPool(), getOptions()); statusClient.setEventHandler(new ISVNEventHandler() { public void handleEvent(SVNEvent event, double progress) throws SVNException {
continue; if (useGlobalIgnores && DefaultSVNOptions.isIgnored(getOptions(), file.getName())) { continue;
SVNStatusClient statusClient = new SVNStatusClient(getRepositoryPool(), getOptions()); statusClient.setEventHandler(new ISVNEventHandler() { public void handleEvent(SVNEvent event, double progress) throws SVNException {
SVNStatusClient statusClient = new SVNStatusClient(getRepositoryPool(), getOptions()); statusClient.setEventHandler(new ISVNEventHandler() { public void handleEvent(SVNEvent event, double progress) throws SVNException {
ignoreUnknownNodeTypes, depth, commitEditor); } else if (srcKind == SVNFileType.FILE || srcKind == SVNFileType.SYMLINK) { if (!useGlobalIgnores || !DefaultSVNOptions.isIgnored(getOptions(), path.getName())) { changed |= importFile(deltaGenerator, path, srcKind, filePath, commitEditor);
boolean changed = false; ISVNFileFilter filter = getCommitHandler() instanceof ISVNFileFilter ? (ISVNFileFilter) getCommitHandler() : null; Collection ignores = useGlobalIgnores ? SVNStatusEditor.getGlobalIgnores(getOptions()) : null; for (int i = 0; children != null && i < children.length; i++) { File file = children[i];
Collection ignores = useGlobalIgnores ? SVNStatusEditor.getGlobalIgnores(getOptions()) : null; checkCancelled(); boolean changed = false;
SVNStatusClient statusClient = new SVNStatusClient(getRepositoryPool(), getOptions()); statusClient.setEventHandler(new ISVNEventHandler() { public void handleEvent(SVNEvent event, double progress) throws SVNException {
SVNStatusClient statusClient = new SVNStatusClient(getRepositoryPool(), getOptions()); statusClient.setEventHandler(new ISVNEventHandler() { public void handleEvent(SVNEvent event, double progress) throws SVNException {
SVNStatusClient statusClient = new SVNStatusClient(getRepositoryPool(), getOptions()); statusClient.setEventHandler(new ISVNEventHandler() { public void handleEvent(SVNEvent event, double progress) throws SVNException {