private void CleanUpConflicts()
{
foreach (string conflictFile in Conflicts)
{
var conflict = new FileInfo(Path.Combine(_root.DirectoryName(), conflictFile));
try
{
conflict.Delete();
}
catch (IOException)
{
throw new CheckoutConflictException("Cannot delete file: " + conflict);
}
RemoveEmptyParents(conflict);
}
foreach (string removedFile in Removed)
{
var file = new FileInfo(Path.Combine(_root.DirectoryName(), removedFile));
file.Delete();
RemoveEmptyParents(file);
}
}