summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Ferguson <ferguson.david@gmail.com>2013-06-19 11:41:07 (GMT)
committerGerrit Code Review <gerrit@cyanogenmod.org>2013-07-03 19:57:01 (GMT)
commit98f660a629bcda4f9caccedfdba32b22b956afc4 (patch)
treed1644d21435a7f4014420d68ae7b2011746e6852
parentb8fddaca8ec0f4dd79bcb4660e1e4416e365a763 (diff)
downloadbuild-98f660a629bcda4f9caccedfdba32b22b956afc4.zip
build-98f660a629bcda4f9caccedfdba32b22b956afc4.tar.gz
build-98f660a629bcda4f9caccedfdba32b22b956afc4.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
-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