diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/myhtml.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/myhtml.py b/scripts/myhtml.py index 0afb0e6..e633f65 100755 --- a/scripts/myhtml.py +++ b/scripts/myhtml.py @@ -136,6 +136,8 @@ class periject_html(base.base): return "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id={}".format(id) if (type == "next"): return "https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id={}".format(id) + if (type == "lore"): + return "https://lore.kernel.org/r/{}".format(id) return id; #-------------------- @@ -519,6 +521,22 @@ class periject_html(base.base): return 1 #-------------------- + # __task_commit_posted + #-------------------- + def __task_commit_posted(self, v, posted, item): + if (not item in posted): + return 0 + + msgid = posted[item] + + with html("tr"): + html("th").print(item) + html("td").print(html("a", {"href":self.commit_url(msgid, item), + "target":"subbody"}).text(msgid)) + + return 1 + + #-------------------- # task_commit_upstream #-------------------- def task_commit_upstream(self, v): @@ -540,6 +558,8 @@ class periject_html(base.base): cnt += self.__task_commit_upstream(v, up, "torvalds") for up in upstream: cnt += self.__task_commit_upstream(v, up, "next") + for up in upstream: + cnt += self.__task_commit_posted(v, up, "lore") return (done, cnt) |