summaryrefslogtreecommitdiffstats
path: root/tools/repopick.py
diff options
context:
space:
mode:
authorDavid Ferguson <ferguson.david@gmail.com>2013-06-19 07:41:07 -0400
committerAdnan Begovic <adnan@cyngn.com>2015-10-06 16:12:16 -0700
commit73939be5244d119eab4d3db54f0c668073916e25 (patch)
tree462ae55d6b7e134f3eaa6aaa357bc29e1b5c911f /tools/repopick.py
parent773dbeb5cc345cf9e34ddd5f848ddb78e95a0f7b (diff)
downloadbuild-73939be5244d119eab4d3db54f0c668073916e25.zip
build-73939be5244d119eab4d3db54f0c668073916e25.tar.gz
build-73939be5244d119eab4d3db54f0c668073916e25.tar.bz2
repopick: remove the superfluous information from date
* '2011-11-17 06:54:52.000000000' -> '2011-11-17 06:54:52' Change-Id: I73d37c9aba13d4be6b4d2d2fc0f2f83971a3e77b
Diffstat (limited to 'tools/repopick.py')
-rwxr-xr-xtools/repopick.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/repopick.py b/tools/repopick.py
index ca1a4da..6ed0d7e 100755
--- a/tools/repopick.py
+++ b/tools/repopick.py
@@ -203,6 +203,7 @@ for change in args.change_number:
sys.exit(1)
# Extract information from the JSON response
+ date_fluff = '.000000000'
project_name = data['project']
change_number = data['_number']
current_revision = data['revisions'][data['current_revision']]
@@ -211,10 +212,10 @@ for change in args.change_number:
fetch_ref = current_revision['fetch']['http']['ref']
author_name = current_revision['commit']['author']['name']
author_email = current_revision['commit']['author']['email']
- author_date = current_revision['commit']['author']['date']
+ author_date = current_revision['commit']['author']['date'].replace(date_fluff, '')
committer_name = current_revision['commit']['committer']['name']
committer_email = current_revision['commit']['committer']['email']
- committer_date = current_revision['commit']['committer']['date']
+ committer_date = current_revision['commit']['committer']['date'].replace(date_fluff, '')
subject = current_revision['commit']['subject']
# Get the list of projects that repo knows about