Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Side by Side Diff: third_party/protobuf/generate_changelog.py

Issue 2495533002: third_party/protobuf: Update to HEAD (83d681ee2c) (Closed)
Patch Set: Make chrome settings proto generated file a component Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #!/usr/bin/env python
2
3 """Generates a friendly list of changes per language since the last release."""
4
5 import sys
6 import os
7
8 class Language(object):
9 def __init__(self, name, pathspec):
10 self.name = name
11 self.pathspec = pathspec
12
13 languages = [
14 Language("C++", [
15 "':(glob)src/google/protobuf/*'",
16 "src/google/protobuf/compiler/cpp",
17 "src/google/protobuf/io",
18 "src/google/protobuf/util",
19 "src/google/protobuf/stubs",
20 ]),
21 Language("Java", [
22 "java",
23 "javanano",
24 "src/google/protobuf/compiler/cpp",
25 ]),
26 Language("Python", [
27 "javanano",
28 "src/google/protobuf/compiler/python",
29 ]),
30 Language("JavaScript", [
31 "js",
32 "src/google/protobuf/compiler/js",
33 ]),
34 Language("PHP", [
35 "php",
36 "src/google/protobuf/compiler/php",
37 ]),
38 Language("Ruby", [
39 "ruby",
40 "src/google/protobuf/compiler/ruby",
41 ]),
42 Language("Csharp", [
43 "csharp",
44 "src/google/protobuf/compiler/csharp",
45 ]),
46 Language("Objective C", [
47 "objectivec",
48 "src/google/protobuf/compiler/objectivec",
49 ]),
50 ]
51
52 if len(sys.argv) < 2:
53 print("Usage: generate_changelog.py <previous release>")
54 sys.exit(1)
55
56 previous = sys.argv[1]
57
58 for language in languages:
59 print(language.name)
60 sys.stdout.flush()
61 os.system(("git log --pretty=oneline --abbrev-commit %s...HEAD %s | " +
62 "sed -e 's/^/ - /'") % (previous, " ".join(language.pathspec)))
63 print("")
64
65 print("To view a commit on GitHub: " +
66 "https://github.com/google/protobuf/commit/<commit id>")
OLDNEW
« no previous file with comments | « third_party/protobuf/examples/CMakeLists.txt ('k') | third_party/protobuf/generate_descriptor_proto.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698