/// <summary> /// will show the request itself, and generate a diff for review, if used with the --diff option. /// </summary> /// <param name="ID"> /// A <see cref="System.String"/> /// </param> /// <param name="ShowDiff"> /// A <see cref="System.Boolean"/> /// </param> /// <returns> /// A <see cref="StringBuilder"/> /// </returns> public static StringBuilder GetSubmitreqShow(string ID, bool ShowDiff) { StringBuilder Result = new StringBuilder(); Result = GET.Getit("request/" + ID, VarGlobal.User, VarGlobal.Password); try { if (ShowDiff) { string SrcePrj = ReadXml.ReadAttrValue(Result.ToString(), "/request/submit/source", "project"); string SrcePkg = ReadXml.ReadAttrValue(Result.ToString(), "/request/submit/source", "package"); string DestPrj = ReadXml.ReadAttrValue(Result.ToString(), "/request/submit/target", "project"); string DestPkg = ReadXml.ReadAttrValue(Result.ToString(), "/request/submit/target", "package"); string Rev = ReadXml.ReadAttrValue(Result.ToString(), "/request/submit/source", "rev"); Result.Append(PostSourceRequestDiff.PostRequestDiff(SrcePrj, SrcePkg, DestPrj, DestPkg, Rev).ToString()); } } catch (Exception Ex) { if (!VarGlobal.LessVerbose) { Console.WriteLine("{0}{1}{2}", Ex.Message, Environment.NewLine, Ex.StackTrace); } } return(Result); }