Skip to content

Commit 90db31c

Browse files
committed
[tools] add link to roll-deps commits
1 parent 2d9d6a7 commit 90db31c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tools/roll-deps.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@ def main():
9696
root_dir = os.path.dirname(tool_dir)
9797
os.chdir(root_dir)
9898

99-
projects = [('src', '.'), ('v8', 'v8'), ('node', 'third_party/node-nw')]
100-
for project, path in projects:
99+
projects = [('src', '.', 'https://github.com/nwjs/chromium.src'),
100+
('v8', 'v8', 'https://github.com/nwjs/v8'),
101+
('node', 'third_party/node-nw', 'https://github.com/nwjs/node')]
102+
for project, path, url in projects:
101103
os.chdir(os.path.join(SRC_DIR, path))
102104
new_rev = subprocess.check_output(['git', 'rev-parse', 'HEAD'], shell=IS_WINDOWS).rstrip()
103105

@@ -111,9 +113,10 @@ def main():
111113
print '%s roll %s:%s' % (project, old_rev, new_rev)
112114
commit_msg = subprocess.check_output(['git', 'log', '-1', '--format=%s'], shell=IS_WINDOWS).rstrip()
113115
commit_msg = project + ": " + commit_msg
116+
commit_body = url + "/commit/" + new_rev
114117
os.chdir(root_dir)
115118
subprocess.check_output(['git', 'add', 'DEPS'], shell=IS_WINDOWS)
116-
subprocess.check_output(['git', 'commit', '--quiet', '-m', commit_msg], shell=IS_WINDOWS)
119+
subprocess.check_output(['git', 'commit', '--quiet', '-m', commit_msg, '-m', commit_body], shell=IS_WINDOWS)
117120
break
118121
return 0
119122

0 commit comments

Comments
 (0)