public void write(Object writeBaton, String s) { propPatchTarget.patchedValue = SVNPropertyValue.create(SVNPropertyValue.getPropertyAsString(propPatchTarget.patchedValue) + s); } }
private void listExternals(SVNRepository repository, Map<SVNURL, SVNPropertyValue> externals, SVNDepth depth, int entryFields, boolean fetchLocks, ISVNDirEntryHandler handler) throws SVNException { for (Map.Entry<SVNURL, SVNPropertyValue> entry : externals.entrySet()) { SVNURL externalParentUrl = entry.getKey(); SVNPropertyValue externalValue = entry.getValue(); SVNExternal[] externalItems = SVNExternal.parseExternals(externalParentUrl, SVNPropertyValue.getPropertyAsString(externalValue)); if (externalItems == null || externalItems.length == 0) { continue; } listExternalItems(repository, externalItems, externalParentUrl, depth, entryFields, fetchLocks, handler); } }
private static Map<String, String> getRevisionProperties(SVNProperties revisionProperties) { if (revisionProperties == null) { return null; } HashMap<String, String> properties = new HashMap<String, String>(); Set<String> svnPropertiesNames = revisionProperties.nameSet(); for (String svnPropertyName : svnPropertiesNames) { SVNPropertyValue svnPropertyValue = revisionProperties.getSVNPropertyValue(svnPropertyName); properties.put(svnPropertyName, SVNPropertyValue.getPropertyAsString(svnPropertyValue)); } return properties; }
public void changeFileProperty(String path, String name, SVNPropertyValue value) throws SVNException { myCancel.checkCancelled(); myLog.logFine(SVNLogType.WC, "change file prop " + name + " = " + SVNPropertyValue.getPropertyAsString(value)); myDelegate.changeFileProperty(path, name, value); }
public void changeDirProperty(String name, SVNPropertyValue value) throws SVNException { myCancel.checkCancelled(); myLog.logFine(SVNLogType.WC, "change dir prop " + name + " = " + SVNPropertyValue.getPropertyAsString(value)); myDelegate.changeDirProperty(name, value); }
public void changeDirProperty(String name, SVNPropertyValue value) throws SVNException { myCancel.checkCancelled(); myLog.logFine(SVNLogType.WC, "change dir prop " + name + " = " + SVNPropertyValue.getPropertyAsString(value)); myDelegate.changeDirProperty(name, value); }
public void changeFileProperty(String path, String name, SVNPropertyValue value) throws SVNException { myCancel.checkCancelled(); myLog.logFine(SVNLogType.WC, "change file prop " + name + " = " + SVNPropertyValue.getPropertyAsString(value)); myDelegate.changeFileProperty(path, name, value); }
public void changeFileProperty(String path, String name, SVNPropertyValue value) throws SVNException { myCancel.checkCancelled(); myLog.logFine(SVNLogType.WC, "change file prop " + name + " = " + SVNPropertyValue.getPropertyAsString(value)); myDelegate.changeFileProperty(path, name, value); }
public void changeDirProperty(String name, SVNPropertyValue value) throws SVNException { myCancel.checkCancelled(); myLog.logFine(SVNLogType.WC, "change dir prop " + name + " = " + SVNPropertyValue.getPropertyAsString(value)); myDelegate.changeDirProperty(name, value); }
public static SVNProperties normalizeRevisionProperties(SVNProperties revProps) throws SVNException { SVNProperties normalizedProps = new SVNProperties(); for (Iterator propNamesIter = revProps.nameSet().iterator(); propNamesIter.hasNext();) { String propName = (String) propNamesIter.next(); if (SVNPropertiesManager.propNeedsTranslation(propName)) { SVNPropertyValue value = revProps.getSVNPropertyValue(propName); String normalizedValue = normalizeString(SVNPropertyValue.getPropertyAsString(value)); if (normalizedValue != null) { normalizedProps.put(propName, SVNPropertyValue.create(normalizedValue)); } } } revProps.putAll(normalizedProps); return normalizedProps; }
public void changeFileProperty(String path, String name, SVNPropertyValue value) throws SVNException { if (SVNProperty.isRegularProperty(name)) { if (SVNPropertiesManager.propNeedsTranslation(name)) { String normalizedVal = SVNAdminClient.normalizeString(SVNPropertyValue.getPropertyAsString(value)); if (normalizedVal != null) { value = SVNPropertyValue.create(normalizedVal); myNormalizedNodePropsCounter++; } } getWrappedEditor().changeFileProperty(path, name, value); } }
public void changeDirProperty(String name, SVNPropertyValue value) throws SVNException { if (SVNProperty.isRegularProperty(name)) { if (SVNPropertiesManager.propNeedsTranslation(name)) { String normalizedValue = SVNAdminClient.normalizeString(SVNPropertyValue.getPropertyAsString(value)); if (normalizedValue != null) { value = SVNPropertyValue.create(normalizedValue); myNormalizedNodePropsCounter++; } } getWrappedEditor().changeDirProperty(name, value); } }
public void changeFileProperty(String path, String name, SVNPropertyValue value) throws SVNException { if (SVNProperty.isRegularProperty(name)) { if (SVNPropertiesManager.propNeedsTranslation(name)) { String normalizedVal = SVNAdminClient.normalizeString(SVNPropertyValue.getPropertyAsString(value)); if (normalizedVal != null) { value = SVNPropertyValue.create(normalizedVal); myNormalizedNodePropsCounter++; } } getWrappedEditor().changeFileProperty(path, name, value); } }
public static PropertyData createPropertyData(Object client, String path, String name, SVNPropertyValue value) { if (client instanceof SVNClientImpl){ if (value.isString()) { return new JavaHLPropertyData((SVNClientImpl) client, null, path, name, value.getString(), SVNPropertyValue.getPropertyAsBytes(value)); } return new JavaHLPropertyData((SVNClientImpl) client, null, path, name, SVNPropertyValue.getPropertyAsString(value), value.getBytes()); } if (value.isString()) { return new PropertyData((SVNClient) client, path, name, value.getString(), SVNPropertyValue.getPropertyAsBytes(value)); } return new PropertyData((SVNClient) client, path, name, SVNPropertyValue.getPropertyAsString(value), value.getBytes()); }
public static PropertyData createPropertyData(Object client, String path, String name, SVNPropertyValue value) { if (client instanceof SVNClientImpl){ if (value.isString()) { return new JavaHLPropertyData((SVNClientImpl) client, null, path, name, value.getString(), SVNPropertyValue.getPropertyAsBytes(value)); } return new JavaHLPropertyData((SVNClientImpl) client, null, path, name, SVNPropertyValue.getPropertyAsString(value), value.getBytes()); } if (value.isString()) { return new PropertyData((SVNClient) client, path, name, value.getString(), SVNPropertyValue.getPropertyAsBytes(value)); } return new PropertyData((SVNClient) client, path, name, SVNPropertyValue.getPropertyAsString(value), value.getBytes()); }
public void changeDirProperty(String name, SVNPropertyValue value) throws SVNException { if (SVNProperty.isRegularProperty(name)) { if (SVNPropertiesManager.propNeedsTranslation(name)) { String normalizedValue = SVNAdminClient.normalizeString(SVNPropertyValue.getPropertyAsString(value)); if (normalizedValue != null) { value = SVNPropertyValue.create(normalizedValue); myNormalizedNodePropsCounter++; } } getWrappedEditor().changeDirProperty(name, value); } }
public static PropertyData createPropertyData(Object client, String path, String name, SVNPropertyValue value) { if (client instanceof SVNClientImpl){ if (value.isString()) { return new JavaHLPropertyData((SVNClientImpl) client, null, path, name, value.getString(), SVNPropertyValue.getPropertyAsBytes(value)); } return new JavaHLPropertyData((SVNClientImpl) client, null, path, name, SVNPropertyValue.getPropertyAsString(value), value.getBytes()); } if (value.isString()) { return new PropertyData((SVNClient) client, path, name, value.getString(), SVNPropertyValue.getPropertyAsBytes(value)); } return new PropertyData((SVNClient) client, path, name, SVNPropertyValue.getPropertyAsString(value), value.getBytes()); }
public void changeDirProperty(String name, SVNPropertyValue value) throws SVNException { if (SVNProperty.isRegularProperty(name)) { if (SVNPropertiesManager.propNeedsTranslation(name)) { String normalizedValue = SVNAdminClient.normalizeString(SVNPropertyValue.getPropertyAsString(value)); if (normalizedValue != null) { value = SVNPropertyValue.create(normalizedValue); myNormalizedNodePropsCounter++; } } getWrappedEditor().changeDirProperty(name, value); } }
public void changeFileProperty(String path, String name, SVNPropertyValue value) throws SVNException { if (SVNProperty.isRegularProperty(name)) { if (SVNPropertiesManager.propNeedsTranslation(name)) { String normalizedVal = SVNAdminClient.normalizeString(SVNPropertyValue.getPropertyAsString(value)); if (normalizedVal != null) { value = SVNPropertyValue.create(normalizedVal); myNormalizedNodePropsCounter++; } } getWrappedEditor().changeFileProperty(path, name, value); } }
public static PropertyData createPropertyData(Object client, String path, String name, SVNPropertyValue value) { if (client instanceof SVNClientImpl){ if (value.isString()) { return new JavaHLPropertyData((SVNClientImpl) client, null, path, name, value.getString(), SVNPropertyValue.getPropertyAsBytes(value)); } return new JavaHLPropertyData((SVNClientImpl) client, null, path, name, SVNPropertyValue.getPropertyAsString(value), value.getBytes()); } if (value.isString()) { return new PropertyData((SVNClient) client, path, name, value.getString(), SVNPropertyValue.getPropertyAsBytes(value)); } return new PropertyData((SVNClient) client, path, name, SVNPropertyValue.getPropertyAsString(value), value.getBytes()); }