Example #1
0
        /// <summary>
        /// Gets a <see cref="HgLogQuery"/> that selects commits witch does not belong to excluded branches.
        /// </summary>
        /// <param name="excludedBranches">Branches for exclusion from the result set.</param>
        public HgLogQuery Except(params string[] excludedBranches)
        {
            var revision = new RevSpec(Revision);

            foreach (var excludedBranch in excludedBranches)
            {
                revision &= RevSpec.InBranch(excludedBranch);
            }

            return(revision);
        }