Exemplo n.º 1
0
 public void FetchChangeData()
 {
     if (ChangeDataFetched == false)
     {
         P4.Options describeOptions = new P4.ChangeCmdOptions(P4.ChangeCmdFlags.IncludeJobs);
         if (_changeData.Id > 0)
         {
             describeOptions = new P4.DescribeCmdOptions(P4.DescribeChangelistCmdFlags.Shelved | P4.DescribeChangelistCmdFlags.Omit, -1, -1);
         }
         P4.Changelist sc = Scm.GetChangelist(_changeData.Id, describeOptions);
         if (sc != null)
         {
             if ((sc.ShelvedFiles != null) && (sc.ShelvedFiles.Count > 0))
             {
                 _changeData.ShelvedFiles = sc.ShelvedFiles;
             }
             else
             {
                 _changeData.ShelvedFiles = null;
             }
             if ((sc.Jobs != null) && (sc.Jobs.Count > 0))
             {
                 _changeData.Jobs = sc.Jobs;
             }
             else
             {
                 _changeData.Jobs = null;
             }
         }
         ChangeDataFetched = true;
     }
 }