Revision: 20763
Author:   [email protected]
Date:     Tue Apr 15 12:00:53 2014 UTC
Log:      Let revision script add commit dates.

BUG=
[email protected]

Review URL: https://codereview.chromium.org/238983002
http://code.google.com/p/v8/source/detail?r=20763

Modified:
 /branches/bleeding_edge/tools/push-to-trunk/releases.py
 /branches/bleeding_edge/tools/push-to-trunk/test_scripts.py

=======================================
--- /branches/bleeding_edge/tools/push-to-trunk/releases.py Mon Apr 14 10:32:00 2014 UTC +++ /branches/bleeding_edge/tools/push-to-trunk/releases.py Tue Apr 15 12:00:53 2014 UTC
@@ -168,6 +168,8 @@
       "branch": branch,
       # The version for displaying in the form 3.26.3 or 3.26.3.12.
       "version": version,
+      # The date of the commit.
+      "date": self.GitLog(n=1, format="%ci", git_hash=git_hash),
       # Merged patches if available in the form 'r1234, r2345'.
       "patches_merged": patches,
       # Default for easier output formatting.
=======================================
--- /branches/bleeding_edge/tools/push-to-trunk/test_scripts.py Mon Apr 14 10:32:00 2014 UTC +++ /branches/bleeding_edge/tools/push-to-trunk/test_scripts.py Tue Apr 15 12:00:53 2014 UTC
@@ -1191,6 +1191,7 @@
           "Version 3.3.1.1 (merged 12)\n\nReview URL: fake.com\n"),
       Git("log -1 --format=%s hash2", ""),
       Git("svn find-rev hash2", "234"),
+      Git("log -1 --format=%ci hash2", "18:15"),
       Git("checkout -f HEAD -- %s" % TEST_CONFIG[VERSION_FILE], "",
           cb=ResetVersion(22, 5)),
       Git("reset --hard svn/3.21", ""),
@@ -1201,6 +1202,7 @@
       Git("log -1 --format=%B hash3", ""),
       Git("log -1 --format=%s hash3", ""),
       Git("svn find-rev hash3", "123"),
+      Git("log -1 --format=%ci hash3", "03:15"),
       Git("checkout -f HEAD -- %s" % TEST_CONFIG[VERSION_FILE], "",
           cb=ResetVersion(22, 5)),
       Git("reset --hard svn/trunk", ""),
@@ -1211,6 +1213,7 @@
       Git("log -1 --format=%B hash6", ""),
       Git("log -1 --format=%s hash6", ""),
       Git("svn find-rev hash6", "345"),
+      Git("log -1 --format=%ci hash6", ""),
       Git("checkout -f HEAD -- %s" % TEST_CONFIG[VERSION_FILE], "",
           cb=ResetVersion(22, 5)),
       Git("status -s -uno", ""),
@@ -1247,15 +1250,15 @@
     expected_json = [
       {"bleeding_edge": "", "patches_merged": "", "version": "3.22.3",
        "chromium_revision": "4567", "branch": "trunk", "revision": "345",
-       "review_link": "",
+       "review_link": "", "date": "",
        "revision_link": "https://code.google.com/p/v8/source/detail?r=345"},
       {"patches_merged": "", "bleeding_edge": "", "version": "3.21.2",
        "chromium_revision": "", "branch": "3.21", "revision": "123",
-       "review_link": "",
+       "review_link": "", "date": "03:15",
        "revision_link": "https://code.google.com/p/v8/source/detail?r=123"},
       {"patches_merged": "12", "bleeding_edge": "", "version": "3.3.1.1",
        "chromium_revision": "", "branch": "3.3", "revision": "234",
-       "review_link": "fake.com",
+       "review_link": "fake.com", "date": "18:15",
        "revision_link": "https://code.google.com/p/v8/source/detail?r=234"},
     ]
     self.assertEquals(expected_json, json.loads(FileToText(json_output)))

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to