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

Unified Diff: third_party/pkg/angular/scripts/changelog/authors.sh

Issue 180873006: Update the Angular/DI tests to latest from github. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review feedback Created 6 years, 10 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/pkg/angular/scripts/analyze.sh ('k') | third_party/pkg/angular/scripts/env.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pkg/angular/scripts/changelog/authors.sh
diff --git a/third_party/pkg/angular/scripts/changelog/authors.sh b/third_party/pkg/angular/scripts/changelog/authors.sh
index d1fe191905945cbb00217a930a267077af78457b..5084cedf688432b820ccac013f5aed43954b8364 100755
--- a/third_party/pkg/angular/scripts/changelog/authors.sh
+++ b/third_party/pkg/angular/scripts/changelog/authors.sh
@@ -2,4 +2,23 @@
LAST_TAG=`git tag | grep ^v | tail -n1`
-git log v0.9.3..HEAD | grep Author | sort | uniq | sed 's/Author: \(.*\) \<.*/\1/' | tr "\\n" ", " | sed 's/,$/\n/' | sed 's/\,/, /g'
+# Determine the lastest two versions sorting the semvers correctly.
+REV_RANGE=$(git tag -l | python -c '
+import sys, re
+version_re = re.compile(r"^(.*/)?(v[0-9.]+)$")
+key = lambda m: tuple(map(int, m.group(2)[1:].split(".")))
+matches = sorted(dict(
+ (key(m), m) for m in map(version_re.search, sys.stdin) if m).items())
+print "%s..%s" % (matches[-2][1].group(0), matches[-1][1].group(0))
+')
+
+echo $REV_RANGE
+
+# Canonicalize by BOTH e-mail address and by name.
+# e.g. Matias Niemelàˆ (Matias Niemela\xcc\x88) and
+# Matias Niemelä (Matias Niemel\xc3\xa4) are the same.
+git log --pretty=tformat:'%ae %an' "$REV_RANGE" | python -c '
+import sys
+authors = set(dict(line.split(" ", 1) for line in sys.stdin).values())
+print ", ".join(sorted(authors)).replace("\n", "")
+'
« no previous file with comments | « third_party/pkg/angular/scripts/analyze.sh ('k') | third_party/pkg/angular/scripts/env.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698