IncomingChangeSetAssets() public static method

Given an incoming changeset this will start a task to query the version control server for which assets are part of the changeset.

public static IncomingChangeSetAssets ( ChangeSet changeset ) : Task
changeset ChangeSet Incoming changeset.
return Task
示例#1
0
 private void OnExpandIncoming(ChangeSet change, ListItem item)
 {
     if (Provider.isActive)
     {
         Task task = Provider.IncomingChangeSetAssets(change);
         task.userIdentifier = item.Identifier;
         task.SetCompletionAction(CompletionAction.OnChangeContentsPendingWindow);
         if (!item.HasChildren)
         {
             Asset    asset    = new Asset("Updating...");
             ListItem listItem = this.incomingList.Add(item, asset.prettyPath, asset);
             listItem.Dummy = true;
             this.incomingList.Refresh(false);
             base.Repaint();
         }
     }
 }
        void OnExpandIncoming(ChangeSet change, ListItem item)
        {
            if (!Provider.isActive)
            {
                return;
            }

            Task task = Provider.IncomingChangeSetAssets(change);

            task.userIdentifier = item.Identifier;
            task.SetCompletionAction(CompletionAction.OnChangeContentsPendingWindow);
            if (!item.HasChildren)
            {
                Asset    asset      = new Asset("Updating...");
                ListItem changeItem = incomingList.Add(item, asset.prettyPath, asset);
                changeItem.Dummy = true;
                incomingList.Refresh(false);  //true here would cause recursion
                Repaint();
            }
        }