From 1bf37ad93e87f065347fdb7224578d55cca8d384 Mon Sep 17 00:00:00 2001 From: Nikola Pajkovsky Date: Mon, 8 Feb 2010 18:06:51 +0100 Subject: new bugzilla insides, add comment and reproduce when it's filled and not CLOSED, hopping when bug is CLOSED as DUPLICATE --- lib/Utils/make_descr.cpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'lib/Utils/make_descr.cpp') diff --git a/lib/Utils/make_descr.cpp b/lib/Utils/make_descr.cpp index c2821a5..e6ea2de 100644 --- a/lib/Utils/make_descr.cpp +++ b/lib/Utils/make_descr.cpp @@ -193,6 +193,38 @@ string make_description_logger(const map_crash_data_t& pCrashData) return description; } +string make_description_reproduce_comment(const map_crash_data_t& pCrashData) +{ + map_crash_data_t::const_iterator end = pCrashData.end(); + map_crash_data_t::const_iterator it; + + string howToReproduce; + it = pCrashData.find(FILENAME_REPRODUCE); + if (it != end) + { + VERB3 log("make_description_reproduce_comment %s", it->second[CD_CONTENT].c_str()); + if ((it->second[CD_CONTENT].size() > 0) + && (it->second[CD_CONTENT] != "1.\n2.\n3.\n")) + { + howToReproduce = "\n\nHow to reproduce\n" + "-----\n"; + howToReproduce += it->second[CD_CONTENT]; + } + } + string comment; + it = pCrashData.find(FILENAME_COMMENT); + if (it != end) + { + if (it->second[CD_CONTENT].size() > 0) + { + comment = "\n\nComment\n" + "-----\n"; + comment += it->second[CD_CONTENT]; + } + } + return howToReproduce + comment; +} + /* This needs more work to make the result less ugly */ string make_description_catcut(const map_crash_data_t& pCrashData) { -- cgit