Esempio n. 1
0
        public Modification[] GetModifications(IIntegrationResult from, IIntegrationResult to)
        {
            P4HistoryParser parser        = new P4HistoryParser();
            ProcessInfo     process       = CreateChangeListProcess(from.StartTime, to.StartTime);
            string          processResult = Execute(process);
            String          changes       = parser.ParseChanges(processResult);

            if (changes.Length == 0)
            {
                return(new Modification[0]);
            }
            else
            {
                process = CreateDescribeProcess(changes);
                Modification[] mods = parser.Parse(new StringReader(Execute(process)), from.StartTime, to.StartTime);
                if (!StringUtil.IsBlank(P4WebURLFormat))
                {
                    foreach (Modification mod in mods)
                    {
                        mod.Url = string.Format(P4WebURLFormat, mod.ChangeNumber);
                    }
                }
                return(mods);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Gets the modifications.	
        /// </summary>
        /// <param name="from">From.</param>
        /// <param name="to">To.</param>
        /// <returns></returns>
        /// <remarks></remarks>
        public override Modification[] GetModifications(IIntegrationResult from, IIntegrationResult to)
		{
			P4HistoryParser parser = new P4HistoryParser();
			ProcessInfo process = CreateChangeListProcess(from.StartTime, to.StartTime);
			string processResult = Execute(process, "GetModifications");
			String changes = parser.ParseChanges(processResult);
			if (changes.Length == 0)
			{
				return new Modification[0];
			}
			else
			{
				process = CreateDescribeProcess(changes);
				Modification[] mods = parser.Parse(new StringReader(Execute(process, "GetModifications")), from.StartTime, to.StartTime);
                if (!string.IsNullOrEmpty(P4WebURLFormat))
				{
					foreach (Modification mod in mods)
					{
						mod.Url = string.Format(CultureInfo.CurrentCulture, P4WebURLFormat, mod.ChangeNumber);
					}
				}
                FillIssueUrl(mods);
				return mods;
			}
		}
Esempio n. 3
0
 public Modification[] GetModifications(IIntegrationResult from, IIntegrationResult to)
 {
     P4HistoryParser parser = new P4HistoryParser();
     ProcessInfo process = CreateChangeListProcess(from.StartTime, to.StartTime);
     string processResult = Execute(process);
     String changes = parser.ParseChanges(processResult);
     if (changes.Length == 0)
     {
         return new Modification[0];
     }
     else
     {
         process = CreateDescribeProcess(changes);
         Modification[] mods = parser.Parse(new StringReader(Execute(process)), from.StartTime, to.StartTime);
         if (! StringUtil.IsBlank(P4WebURLFormat))
         {
             foreach (Modification mod in mods)
             {
                 mod.Url = string.Format(P4WebURLFormat, mod.ChangeNumber);
             }
         }
         return mods;
     }
 }