private static void CommitAndTagRelease(string tag)
{
CommandLine.WriteLine("{{white}} =======================================");
CommandLine.WriteLine("{{white}} Tagging the release");
CommandLine.WriteLine("{{white}} =======================================");
foreach (Hg repository in AllRepositories)
{
repository.AddUnversionedFiles();
repository.RemoveDeletedFiles();
bool madeCommit = repository.Commit("Release " + tag);
if (repository == Default || madeCommit)
{
repository.Tag(tag);
}
}
CommandLine.WriteLine();
}