BuildRelease.Program.CommitAndTagRelease C# (CSharp) Method

CommitAndTagRelease() private static method

private static CommitAndTagRelease ( string tag ) : void
tag string
return void
        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();
        }