Esempio n. 1
0
        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;
            }

            try
            {
                return(_workspace.CheckIn(checkinParameters));
            }
            catch (GatedCheckinException gatedException)
            {
                throw new GitTfsGatedCheckinException(gatedException.ShelvesetName, gatedException.AffectedBuildDefinitions, gatedException.CheckInTicket);
            }
        }
Esempio n. 2
0
 public CheckinPolicyEvaluationResult EvaluateCheckin(IWorkspace workspace, IPendingChange[] pendingChanges, string comment, ICheckinNote checkinNote, IEnumerable<IWorkItemCheckinInfo> workItemInfo)
 {
     var result = workspace.EvaluateCheckin(TfsCheckinEvaluationOptions.All, pendingChanges,
                                            pendingChanges, comment, null, checkinNote,
                                            workItemInfo);
     return new CheckinPolicyEvaluationResult(result);
 }
Esempio n. 3
0
 public int Checkin(IPendingChange[] changes, string comment, ICheckinNote checkinNote, IEnumerable <IWorkItemCheckinInfo> workItemChanges, TfsPolicyOverrideInfo policyOverrideInfo)
 {
     return(_workspace.CheckIn(
                _bridge.Unwrap <PendingChange>(changes),
                comment,
                _bridge.Unwrap <CheckinNote>(checkinNote),
                _bridge.Unwrap <WorkItemCheckinInfo>(workItemChanges),
                ToTfs(policyOverrideInfo)));
 }
Esempio n. 4
0
 public int Checkin(IPendingChange[] changes, string comment, ICheckinNote checkinNote, IEnumerable<IWorkItemCheckinInfo> workItemChanges,
                    TfsPolicyOverrideInfo policyOverrideInfo, bool overrideGatedCheckIn)
 {
     return _workspace.CheckIn(
         _bridge.Unwrap<PendingChange>(changes),
         comment,
         _bridge.Unwrap<CheckinNote>(checkinNote),
         _bridge.Unwrap<WorkItemCheckinInfo>(workItemChanges),
         ToTfs(policyOverrideInfo));
 }
Esempio n. 5
0
 public ICheckinEvaluationResult EvaluateCheckin(TfsCheckinEvaluationOptions options, IPendingChange[] allChanges, IPendingChange[] changes,
                                                 string comment, ICheckinNote checkinNote, IEnumerable <IWorkItemCheckinInfo> workItemChanges)
 {
     return(_bridge.Wrap <WrapperForCheckinEvaluationResult, CheckinEvaluationResult>(_workspace.EvaluateCheckin(
                                                                                          _bridge.Convert <CheckinEvaluationOptions>(options),
                                                                                          _bridge.Unwrap <PendingChange>(allChanges),
                                                                                          _bridge.Unwrap <PendingChange>(changes),
                                                                                          comment,
                                                                                          _bridge.Unwrap <CheckinNote>(checkinNote),
                                                                                          _bridge.Unwrap <WorkItemCheckinInfo>(workItemChanges))));
 }
Esempio n. 6
0
        public int Checkin(IPendingChange[] changes, string comment, 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
            };

            return _workspace.CheckIn(checkinParameters);
        }
Esempio n. 7
0
        public int Checkin(IPendingChange[] changes, string comment, 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
            };

            return(_workspace.CheckIn(checkinParameters));
        }
Esempio n. 8
0
        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)));
        }
Esempio n. 9
0
 public ICheckinEvaluationResult EvaluateCheckin(TfsCheckinEvaluationOptions options, IPendingChange[] allChanges, IPendingChange[] changes, string comment, string authors, ICheckinNote checkinNote, IEnumerable<IWorkItemCheckinInfo> workItemChanges)
 {
     throw new NotImplementedException();
 }
Esempio n. 10
0
 public int Checkin(IPendingChange[] changes, string comment, string author, ICheckinNote checkinNote, IEnumerable<IWorkItemCheckinInfo> workItemChanges, TfsPolicyOverrideInfo policyOverrideInfo, bool overrideGatedCheckIn)
 {
     throw new NotImplementedException();
 }
Esempio n. 11
0
 public int Checkin(IPendingChange[] changes, string comment, string author, ICheckinNote checkinNote, IEnumerable <IWorkItemCheckinInfo> workItemChanges, TfsPolicyOverrideInfo policyOverrideInfo, bool overrideGatedCheckIn)
 {
     throw new NotImplementedException();
 }
Esempio n. 12
0
 public ICheckinEvaluationResult EvaluateCheckin(TfsCheckinEvaluationOptions options, IPendingChange[] allChanges, IPendingChange[] changes, string comment, string authors, ICheckinNote checkinNote, IEnumerable <IWorkItemCheckinInfo> workItemChanges)
 {
     throw new NotImplementedException();
 }
Esempio n. 13
0
        public CheckinPolicyEvaluationResult EvaluateCheckin(IWorkspace workspace, IPendingChange[] pendingChanges, string comment, ICheckinNote checkinNote, IEnumerable <IWorkItemCheckinInfo> workItemInfo)
        {
            var result = workspace.EvaluateCheckin(TfsCheckinEvaluationOptions.All, pendingChanges,
                                                   pendingChanges, comment, null, checkinNote,
                                                   workItemInfo);

            return(new CheckinPolicyEvaluationResult(result));
        }