public void setRevisionProperty(String propertyName, SVNPropertyValue propertyValue) throws SVNException { myCurrentRevisionBaton.myHasProps = true; if (propertyValue == null) { myCurrentRevisionBaton.myProperties.remove(propertyName); } else { myCurrentRevisionBaton.myProperties.put(propertyName, propertyValue); } }
private void changeProperty(SVNProperties properties, String propName, SVNPropertyValue propValue) { if (propValue == null) { properties.remove(propName); } else { properties.put(propName, propValue); } }
private void changeProperty(SVNProperties properties, String propName, SVNPropertyValue propValue) { if (propValue == null) { properties.remove(propName); } else { properties.put(propName, propValue); } }
private void changeProperty(SVNProperties properties, String propName, SVNPropertyValue propValue) { if (propValue == null) { properties.remove(propName); } else { properties.put(propName, propValue); } }
public void setRevisionProperty(String propertyName, SVNPropertyValue propertyValue) throws SVNException { myCurrentRevisionBaton.myHasProps = true; if (propertyValue == null) { myCurrentRevisionBaton.myProperties.remove(propertyName); } else { myCurrentRevisionBaton.myProperties.put(propertyName, propertyValue); } }
public void setRevisionProperty(String propertyName, SVNPropertyValue propertyValue) throws SVNException { myCurrentRevisionBaton.myHasProps = true; if (propertyValue == null) { myCurrentRevisionBaton.myProperties.remove(propertyName); } else { myCurrentRevisionBaton.myProperties.put(propertyName, propertyValue); } }
protected SVNVersionedProperties formatBaseProperties(SVNProperties srcProperties) { SVNProperties filteredProperties = new SVNProperties(srcProperties); filteredProperties.remove(SVNProperty.MERGE_INFO); return new SVNProperties13(srcProperties); }
public void setPropertyValue(String name, SVNPropertyValue value) throws SVNException { SVNProperties props = loadProperties(); if (value != null) { props.put(name, value); } else { props.remove(name); } myIsModified = true; }
protected SVNVersionedProperties formatBaseProperties(SVNProperties srcProperties) { SVNProperties filteredProperties = new SVNProperties(srcProperties); filteredProperties.remove(SVNProperty.MERGE_INFO); return new SVNProperties13(srcProperties); }
protected SVNVersionedProperties formatProperties(SVNEntry entry, SVNProperties srcProperties) { SVNProperties filteredProperties = new SVNProperties(srcProperties); filteredProperties.remove(SVNProperty.MERGE_INFO); return new SVNProperties13(filteredProperties); }
public void setPropertyValue(String name, SVNPropertyValue value) throws SVNException { SVNProperties props = loadProperties(); if (value != null) { props.put(name, value); } else { props.remove(name); } myIsModified = true; }
protected SVNVersionedProperties formatProperties(SVNEntry entry, SVNProperties srcProperties) { SVNProperties filteredProperties = new SVNProperties(srcProperties); filteredProperties.remove(SVNProperty.MERGE_INFO); return new SVNProperties13(filteredProperties); }
protected SVNVersionedProperties formatBaseProperties(SVNProperties srcProperties) { SVNProperties filteredProperties = new SVNProperties(srcProperties); filteredProperties.remove(SVNProperty.MERGE_INFO); return new SVNProperties13(srcProperties); }
public void setPropertyValue(String name, SVNPropertyValue value) throws SVNException { SVNProperties props = loadProperties(); if (value != null) { props.put(name, value); } else { props.remove(name); } myIsModified = true; }
protected SVNVersionedProperties formatProperties(SVNEntry entry, SVNProperties srcProperties) { SVNProperties filteredProperties = new SVNProperties(srcProperties); filteredProperties.remove(SVNProperty.MERGE_INFO); return new SVNProperties13(filteredProperties); }
private SVNProperties applyPropChanges(SVNProperties props, SVNProperties propChanges) { SVNProperties result = new SVNProperties(props); if (propChanges != null) { for(Iterator names = propChanges.nameSet().iterator(); names.hasNext();) { String name = (String) names.next(); SVNPropertyValue value = propChanges.getSVNPropertyValue(name); if (value == null) { result.remove(name); } else { result.put(name, value); } } } return result; }
private SVNProperties applyPropChanges(SVNProperties props, SVNProperties propChanges) { SVNProperties result = new SVNProperties(props); if (propChanges != null) { for(Iterator names = propChanges.nameSet().iterator(); names.hasNext();) { String name = (String) names.next(); SVNPropertyValue value = propChanges.getSVNPropertyValue(name); if (value == null) { result.remove(name); } else { result.put(name, value); } } } return result; }
private SVNProperties applyPropChanges(SVNProperties props, SVNProperties propChanges) { SVNProperties result = new SVNProperties(props); if (propChanges != null) { for(Iterator names = propChanges.nameSet().iterator(); names.hasNext();) { String name = (String) names.next(); SVNPropertyValue value = propChanges.getSVNPropertyValue(name); if (value == null) { result.remove(name); } else { result.put(name, value); } } } return result; }
private void removeNonPropChanges(SVNProperties pristineProps, SVNProperties propChanges) { Set<String> removed = new HashSet<String>(); for (String propertyName : propChanges.nameSet()) { SVNPropertyValue newValue = propChanges.getSVNPropertyValue(propertyName); if (newValue != null) { SVNPropertyValue oldValue = pristineProps.getSVNPropertyValue(propertyName); if (oldValue != null && oldValue.equals(newValue)) { removed.add(propertyName); } } } for (String name : removed) { propChanges.remove(name); } }
/** * Adds custom revision properties for the operation. * See {@link #setRevisionProperties(SVNProperties)} * * @param name name of custom revision property * @param value value of custom revision property */ public void setRevisionProperty(String name, SVNPropertyValue value) { if (value != null) { getRevisionProperties().put(name, value); } else { getRevisionProperties().remove(name); } }