예제 #1
0
        private bool CommitChangeset(Changeset changeset)
        {
            var result = false;

            AbortRetryIgnore(delegate
            {
                result = vcsWrapper.AddAll() &&
                         vcsWrapper.Commit(GetUsername(changeset.User), GetEmail(changeset.User),
                                           changeset.Comment ?? DefaultComment, changeset.DateTime);
            });
            return(result);
        }
예제 #2
0
        private bool CommitChangeset(Changeset changeset)
        {
            var result = false;

            AbortRetryIgnore(delegate
            {
                string comment = changeset.Comment;
                if (string.IsNullOrWhiteSpace(comment))
                {
                    if (this.tryGenerateCommitMessage)
                    {
                        comment = (ChangesetCommentBuilder.GetComment(changeset) ?? DefaultComment);
                    }
                    else
                    {
                        comment = DefaultComment;
                    }
                }
                result = vcsWrapper.AddAll() &&
                         vcsWrapper.Commit(GetUsername(changeset.User), GetEmail(changeset.User), comment, changeset.DateTime);
            });
            return(result);
        }