public static void WriteRepositoryConfig(DirectoryInfo workspace, Repository r)
 {
     string rConfFilePath = Path.Combine(workspace.FullName, Global.RepositoryConfigFilePath);
     string xml = XmlUtility.Obj2XmlStr(r.GetConfiguration());
     File.WriteAllText(rConfFilePath, xml);
 }