Files
git-tfs/GitTfs.Vs2010/Wrappers.Vs2010.cs
Jonas Boesch 86bc1a4b77 Fixed code that failed test WorkspaceTests.Policy_failed_and_Force_with_an_OverrideReason.
- Updated test calls.
- Removed duplicate versions of Checkin and EvaluateCheckin without author.
2013-03-26 15:59:48 +01:00

29 lines
1.0 KiB
C#

using System.Collections.Generic;
using Microsoft.TeamFoundation.VersionControl.Client;
using Sep.Git.Tfs.Core.TfsInterop;
namespace Sep.Git.Tfs.VsCommon
{
public partial class WrapperForWorkspace
{
public int Checkin(IPendingChange[] changes, string comment, string author, ICheckinNote checkinNote, IEnumerable<IWorkItemCheckinInfo> workItemChanges,
TfsPolicyOverrideInfo policyOverrideInfo, bool overrideGatedCheckIn)
{
var checkinParameters = new WorkspaceCheckInParameters(_bridge.Unwrap<PendingChange>(changes), comment)
{
CheckinNotes = _bridge.Unwrap<CheckinNote>(checkinNote),
AssociatedWorkItems = _bridge.Unwrap<WorkItemCheckinInfo>(workItemChanges),
PolicyOverride = ToTfs(policyOverrideInfo),
OverrideGatedCheckIn = overrideGatedCheckIn
};
if (author != null)
checkinParameters.Author = author;
return _workspace.CheckIn(checkinParameters);
}
}
}