Example #1
0
        public IItem[] GetItems(string itemPath, int changesetNumber, TfsRecursionType recursionType)
        {
            var itemSet = _versionControlServer.GetItems(
                new ItemSpec(itemPath, _bridge.Convert <RecursionType>(recursionType), 0),
                new ChangesetVersionSpec(changesetNumber),
                DeletedState.NonDeleted,
                ItemType.Any,
                true
                );

            return(_bridge.Wrap <WrapperForItem, Item>(itemSet.Items));
        }
 private IEnumerable <TInterface> GetWorkItemInfosHelper <TInterface, TWrapper, TInstance>(IEnumerable <string> workItems,
                                                                                           TfsWorkItemCheckinAction checkinAction, Func <string, WorkItemCheckinAction, TInstance> func)
     where TWrapper : class
 {
     return((from workItem in workItems
             select _bridge.Wrap <TWrapper, TInstance>(
                 func(workItem, _bridge.Convert <WorkItemCheckinAction>(checkinAction))))
            .Cast <TInterface>());
 }
Example #3
0
 public void Shelve(IShelveset shelveset, IPendingChange[] changes, TfsShelvingOptions options)
 {
     _workspace.Shelve(_bridge.Unwrap <Shelveset>(shelveset), _bridge.Unwrap <PendingChange>(changes), _bridge.Convert <ShelvingOptions>(options));
 }
Example #4
0
        public IItem[] GetItems(string itemPath, int changesetNumber, TfsRecursionType recursionType)
        {
            var itemSet = _versionControlServer.GetItems(itemPath, new ChangesetVersionSpec(changesetNumber), _bridge.Convert <RecursionType>(recursionType));

            return(_bridge.Wrap <WrapperForItem, Item>(itemSet.Items));
        }