Exemplo n.º 1
0
        public CheckinOptions BuildShelveSetSpecificCheckinOptions(CheckinOptions sourceCheckinOptions,
                                                                   string commitMessage)
        {
            var customCheckinOptions = sourceCheckinOptions.Clone(_globals);

            customCheckinOptions.CheckinComment = commitMessage;

            customCheckinOptions.ProcessWorkItemCommands(false);

            return(customCheckinOptions);
        }
Exemplo n.º 2
0
        public CheckinOptions BuildCommitSpecificCheckinOptions(CheckinOptions sourceCheckinOptions, string commitMessage)
        {
            var customCheckinOptions = sourceCheckinOptions.Clone(this.globals);

            customCheckinOptions.CheckinComment = commitMessage;

            customCheckinOptions.ProcessWorkItemCommands(writer);

            customCheckinOptions.ProcessCheckinNoteCommands(writer);

            customCheckinOptions.ProcessForceCommand(writer);

            return(customCheckinOptions);
        }
Exemplo n.º 3
0
        public CheckinOptions BuildShelveSetSpecificCheckinOptions(CheckinOptions sourceCheckinOptions,
                                                                   string commitMessage)
        {
            var customCheckinOptions = sourceCheckinOptions.Clone(this.globals);

            // Use commit message comment in call to ProcessWorkItemCommands
            customCheckinOptions.CheckinComment = commitMessage;
            customCheckinOptions.ProcessWorkItemCommands(writer, false);

            // This means a -m was provided. Override the shelveset comment with the -m value.
            if (!string.IsNullOrWhiteSpace(sourceCheckinOptions.CheckinComment))
            {
                customCheckinOptions.CheckinComment = sourceCheckinOptions.CheckinComment;
            }

            return(customCheckinOptions);
        }