/// <summary> /// Many SVN properties have values that are sets of new-line separated strings. /// This method adds a value to that set. /// This method will not add the same value twice, as it checks if the value is already present in the set of values. /// </summary> public static void AddPropertyValue(this SvnCommand svnCommand, AbsolutePath path, string propertyName, string value) { var values = new List <string>(svnCommand.GetPropertyValues(path, propertyName)); // Only add the value once. if (!values.Contains(value)) { values.Add(value); svnCommand.SetPropertyValues(path, propertyName, values.ToArray()); } }
public static void SetSvnIgnoreValues(this SvnCommand svnCommand, AbsolutePath path, params string[] values) { svnCommand.SetPropertyValues(path, SvnCommand.SvnIgnorePropertyName, values); }