Commit c2c57b0d authored by Gustavo Padovan's avatar Gustavo Padovan

use diff url for chromeos

parent 715f00a6
......@@ -8,9 +8,6 @@ from datetime import datetime
import jinja2
import argparse
BASE_URL="https://chromium.googlesource.com/chromiumos/third_party/kernel/+/"
#BASE_URL="https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id="
def classify_commit(fs_dict, commit):
diff = repo.diff(commit[0], commit[0] + "^")
for delta in diff.deltas:
......@@ -44,7 +41,7 @@ def generate_html(repo, fs_dict, total_commits, title, cmd):
env = jinja2.Environment(loader=jinja2.FileSystemLoader('{}/templates'.format(sys.path[0])))
template = env.get_template('backlog-tree.html.j2')
return template.render(data=fs_dict, baseurl=BASE_URL, total_commits=total_commits, title=title, cmdline=cmd, now=datetime.now())
return template.render(data=fs_dict, total_commits=total_commits, title=title, cmdline=cmd, now=datetime.now())
if __name__ == "__main__":
parser = argparse.ArgumentParser()
......
......@@ -21,7 +21,9 @@
</span>
{% endif %}
<a href="{{ baseurl }}{{ commit[0] }}">{{ commit[0] }} - {{ commit[1] }}</a>
<a href="https://chromium.googlesource.com/chromiumos/third_party/kernel/+/{{ commit[0] }}%5E%21/">{{ commit[0] }} - {{ commit[1] }}</a>
{#<a href=" https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id={{ commit[0] }}">{{ commit[0] }} - {{ commit[1] }}</a>#}
{% if commit[2] != '' %}
<span class="badge badge-pill badge-warning m-1 p-2">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment