public static void elideMergeInfo(Map parentMergeInfo, Map childMergeInfo, File path, String pathSuffix, SVNWCAccess access) throws SVNException { boolean elides = shouldElideMergeInfo(parentMergeInfo, childMergeInfo, pathSuffix); if (elides) { SVNPropertiesManager.setProperty(access, path, SVNProperty.MERGE_INFO, null, true); } }
public static void elideMergeInfo(Map parentMergeInfo, Map childMergeInfo, File path, String pathSuffix, SVNWCAccess access) throws SVNException { boolean elides = shouldElideMergeInfo(parentMergeInfo, childMergeInfo, pathSuffix); if (elides) { SVNPropertiesManager.setProperty(access, path, SVNProperty.MERGE_INFO, null, true); } }
public static void elideMergeInfo(Map parentMergeInfo, Map childMergeInfo, File path, String pathSuffix, SVNWCAccess access) throws SVNException { boolean elides = shouldElideMergeInfo(parentMergeInfo, childMergeInfo, pathSuffix); if (elides) { SVNPropertiesManager.setProperty(access, path, SVNProperty.MERGE_INFO, null, true); } }
public static void recordWCMergeInfo(File path, Map mergeInfo, SVNWCAccess wcAccess) throws SVNException { SVNPropertyValue value = null; if (mergeInfo != null) { value = SVNPropertyValue.create(SVNMergeInfoUtil.formatMergeInfoToString(mergeInfo, null)); } setProperty(wcAccess, path, SVNProperty.MERGE_INFO, value, true); }
public static void recordWCMergeInfo(File path, Map mergeInfo, SVNWCAccess wcAccess) throws SVNException { SVNPropertyValue value = null; if (mergeInfo != null) { value = SVNPropertyValue.create(SVNMergeInfoUtil.formatMergeInfoToString(mergeInfo, null)); } setProperty(wcAccess, path, SVNProperty.MERGE_INFO, value, true); }
public static void recordWCMergeInfo(File path, Map mergeInfo, SVNWCAccess wcAccess) throws SVNException { SVNPropertyValue value = null; if (mergeInfo != null) { value = SVNPropertyValue.create(SVNMergeInfoUtil.formatMergeInfoToString(mergeInfo, null)); } setProperty(wcAccess, path, SVNProperty.MERGE_INFO, value, true); }
private void addFile(File path, SVNFileType type, SVNAdminArea dir) throws SVNException { SVNWCManager.add(path, dir, null, SVNRevision.UNDEFINED); String mimeType = null; if (type == SVNFileType.SYMLINK) { SVNPropertiesManager.setProperty(dir.getWCAccess(), path, SVNProperty.SPECIAL, SVNProperty.getValueOfBooleanProperty(SVNProperty.SPECIAL), false); } else { Map props = SVNPropertiesManager.computeAutoProperties(getOptions(), path); for (Iterator names = props.keySet().iterator(); names.hasNext();) { String propName = (String) names.next(); String propValue = (String) props.get(propName); SVNPropertiesManager.setProperty(dir.getWCAccess(), path, propName, propValue, false); } mimeType = (String) props.get(SVNProperty.MIME_TYPE); } SVNEvent event = SVNEventFactory.createAddedEvent(dir, path.getName(), SVNNodeKind.FILE, mimeType); dispatchEvent(event); }
private void copyProps(File src, File dst, SVNWCAccess srcAccess, SVNWCAccess dstAccess) throws SVNException { SVNEntry srcEntry = srcAccess.getVersionedEntry(src, false); SVNAdminArea srcArea = srcEntry.getAdminArea(); SVNVersionedProperties srcProps = srcArea.getProperties(srcEntry.getName()); Collection propNames = srcProps.getPropertyNames(null); for (Iterator propNamesIter = propNames.iterator(); propNamesIter.hasNext();) { String propName = (String) propNamesIter.next(); SVNPropertyValue propValue = srcProps.getPropertyValue(propName); SVNPropertiesManager.setProperty(dstAccess, dst, propName, propValue, false); } }
private void copyProps(File src, File dst, SVNWCAccess srcAccess, SVNWCAccess dstAccess) throws SVNException { SVNEntry srcEntry = srcAccess.getVersionedEntry(src, false); SVNAdminArea srcArea = srcEntry.getAdminArea(); SVNVersionedProperties srcProps = srcArea.getProperties(srcEntry.getName()); Collection propNames = srcProps.getPropertyNames(null); for (Iterator propNamesIter = propNames.iterator(); propNamesIter.hasNext();) { String propName = (String) propNamesIter.next(); SVNPropertyValue propValue = srcProps.getPropertyValue(propName); SVNPropertiesManager.setProperty(dstAccess, dst, propName, propValue, false); } }
private void copyProps(File src, File dst, SVNWCAccess srcAccess, SVNWCAccess dstAccess) throws SVNException { SVNEntry srcEntry = srcAccess.getVersionedEntry(src, false); SVNAdminArea srcArea = srcEntry.getAdminArea(); SVNVersionedProperties srcProps = srcArea.getProperties(srcEntry.getName()); Collection propNames = srcProps.getPropertyNames(null); for (Iterator propNamesIter = propNames.iterator(); propNamesIter.hasNext();) { String propName = (String) propNamesIter.next(); SVNPropertyValue propValue = srcProps.getPropertyValue(propName); SVNPropertiesManager.setProperty(dstAccess, dst, propName, propValue, false); } }
SVNPropertiesManager.setProperty(dir.getWCAccess(), path, SVNProperty.SPECIAL, SVNProperty.getValueOfBooleanProperty(SVNProperty.SPECIAL), false); } else { String propValue = (String) props.get(propName); try { SVNPropertiesManager.setProperty(dir.getWCAccess(), path, propName, SVNPropertyValue.create(propValue), false); } catch (SVNException e) { if (SVNProperty.EOL_STYLE.equals(propName) && throw e; } else if (action == ISVNAddParameters.ADD_AS_IS) { SVNPropertiesManager.setProperty(dir.getWCAccess(), path, propName, null, false); } else if (action == ISVNAddParameters.ADD_AS_BINARY) { SVNPropertiesManager.setProperty(dir.getWCAccess(), path, propName, null, false); mimeType = SVNFileUtil.BINARY_MIME_TYPE; SVNPropertiesManager.setProperty(dir.getWCAccess(), path, SVNProperty.MIME_TYPE, SVNPropertyValue.create(mimeType), false); } else { mimeType = (String) props.get(SVNProperty.MIME_TYPE);
String mimeType = null; if (type == SVNFileType.SYMLINK) { SVNPropertiesManager.setProperty(dir.getWCAccess(), path, SVNProperty.SPECIAL, SVNProperty.getValueOfBooleanProperty(SVNProperty.SPECIAL), false); } else { Map props = SVNPropertiesManager.computeAutoProperties(getOptions(), path, null); String propValue = (String) props.get(propName); try { SVNPropertiesManager.setProperty(dir.getWCAccess(), path, propName, SVNPropertyValue.create(propValue), false); } catch (SVNException e) { if (SVNProperty.EOL_STYLE.equals(propName) && e.getErrorMessage().getErrorCode() == SVNErrorCode.ILLEGAL_TARGET && e.getErrorMessage().getMessage().indexOf("newlines") >= 0) { SVNPropertiesManager.setProperty(dir.getWCAccess(), path, propName, null, false); } else if (action == ISVNAddParameters.ADD_AS_BINARY) { SVNPropertiesManager.setProperty(dir.getWCAccess(), path, propName, null, false); mimeType = SVNFileUtil.BINARY_MIME_TYPE; SVNPropertiesManager.setProperty(dir.getWCAccess(), path, SVNProperty.MIME_TYPE, SVNPropertyValue.create(mimeType), false); } else { mimeType = (String) props.get(SVNProperty.MIME_TYPE);
SVNPropertiesManager.setProperty(dir.getWCAccess(), path, SVNProperty.SPECIAL, SVNProperty.getValueOfBooleanProperty(SVNProperty.SPECIAL), false); } else { String propValue = (String) props.get(propName); try { SVNPropertiesManager.setProperty(dir.getWCAccess(), path, propName, SVNPropertyValue.create(propValue), false); } catch (SVNException e) { if (SVNProperty.EOL_STYLE.equals(propName) && SVNPropertiesManager.setProperty(dir.getWCAccess(), path, propName, null, false); } else if (action == ISVNAddParameters.ADD_AS_BINARY) { SVNPropertiesManager.setProperty(dir.getWCAccess(), path, propName, null, false); mimeType = SVNFileUtil.BINARY_MIME_TYPE; SVNPropertiesManager.setProperty(dir.getWCAccess(), path, SVNProperty.MIME_TYPE, SVNPropertyValue.create(mimeType), false); } else { mimeType = (String) props.get(SVNProperty.MIME_TYPE);
public void handleEntry(File path, SVNEntry entry) throws SVNException { SVNAdminArea adminArea = entry.getAdminArea(); if (entry.isDirectory() && !adminArea.getThisDirName().equals(entry.getName())) { return; } if (entry.isScheduledForDeletion()) { return; } if (!SVNWCAccess.matchesChangeList(myChangeLists, entry)) { return; } try { boolean modified = SVNPropertiesManager.setProperty(adminArea.getWCAccess(), path, myPropName, myPropValue, myIsForce); if (modified && myPropHandler != null) { myPropHandler.handleProperty(path, new SVNPropertyData(myPropName, myPropValue, getOptions())); } } catch (SVNException svne) { if (svne.getErrorMessage().getErrorCode() != SVNErrorCode.ILLEGAL_TARGET) { throw svne; } } }
public void handleEntry(File path, SVNEntry entry) throws SVNException { SVNAdminArea adminArea = entry.getAdminArea(); if (entry.isDirectory() && !adminArea.getThisDirName().equals(entry.getName())) { return; } if (entry.isScheduledForDeletion()) { return; } if (!SVNWCAccess.matchesChangeList(myChangeLists, entry)) { return; } try { boolean modified = SVNPropertiesManager.setProperty(adminArea.getWCAccess(), path, myPropName, myPropValue, myIsForce); if (modified && myPropHandler != null) { myPropHandler.handleProperty(path, new SVNPropertyData(myPropName, myPropValue, getOptions())); } } catch (SVNException svne) { if (svne.getErrorMessage().getErrorCode() != SVNErrorCode.ILLEGAL_TARGET) { throw svne; } } }
public void handleEntry(File path, SVNEntry entry) throws SVNException { SVNAdminArea adminArea = entry.getAdminArea(); if (entry.isDirectory() && !adminArea.getThisDirName().equals(entry.getName())) { return; } if (entry.isScheduledForDeletion()) { return; } if (!SVNWCAccess.matchesChangeList(myChangeLists, entry)) { return; } try { boolean modified = SVNPropertiesManager.setProperty(adminArea.getWCAccess(), path, myPropName, myPropValue, myIsForce); if (modified && myPropHandler != null) { myPropHandler.handleProperty(path, new SVNPropertyData(myPropName, myPropValue, getOptions())); } } catch (SVNException svne) { if (svne.getErrorMessage().getErrorCode() != SVNErrorCode.ILLEGAL_TARGET) { throw svne; } } }
boolean modified = SVNPropertiesManager.setProperty(adminArea.getWCAccess(), path, propName, propValue, force); if (modified && handler != null) { handler.handleProperty(path, new SVNPropertyData(propName, propValue, getOptions()));
boolean modified = SVNPropertiesManager.setProperty(adminArea.getWCAccess(), path, propName, propValue, force); if (modified && handler != null) {
boolean modified = SVNPropertiesManager.setProperty(adminArea.getWCAccess(), path, propName, propValue, force); if (modified && handler != null) {
wcAccess.walkEntries(path, entryHandler, false, depth); } else if (SVNWCAccess.matchesChangeList(changeLists, entry)) { boolean modified = SVNPropertiesManager.setProperty(wcAccess, path, propName, propValue, skipChecks); if (modified && handler != null) { handler.handleProperty(path, new SVNPropertyData(propName, propValue, getOptions()));