Files
git-tfs/GitTfs.Vs2008/Wrappers.Vs2008.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

34 lines
1.2 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)
{
if (author != null)
{
return _workspace.CheckIn(
_bridge.Unwrap<PendingChange>(changes),
comment,
author,
_bridge.Unwrap<CheckinNote>(checkinNote),
_bridge.Unwrap<WorkItemCheckinInfo>(workItemChanges),
ToTfs(policyOverrideInfo));
}
return _workspace.CheckIn(
_bridge.Unwrap<PendingChange>(changes),
comment,
_bridge.Unwrap<CheckinNote>(checkinNote),
_bridge.Unwrap<WorkItemCheckinInfo>(workItemChanges),
ToTfs(policyOverrideInfo));
}
}
}