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

Side by Side Diff: svn-log

Issue 13801015: Updating svn-log. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/perf/dashboard/
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python2.4 1 #!/usr/bin/python
2 2
3 import os 3 import os
4 import re
4 import subprocess 5 import subprocess
5 import sys 6 import sys
6 7
7 print 'content-type: text/xml'
8 print ''
9
10 try: 8 try:
11 » options = {} 9 options = {}
12 » query_string = os.environ['QUERY_STRING'].split('&') 10 query_string = os.environ['QUERY_STRING'].split('&')
13 » for q in query_string: 11 for q in query_string:
14 » opt = q.split('=') 12 opt = q.split('=')
15 » options[opt[0]] = opt[1] 13 options[opt[0]] = opt[1]
16 14 if ('range' not in options or 'url' not in options or
17 » c = ['svn', 'log', '--xml', '-v', '-r', options['range'], options['url'] ] 15 not (options['url'].startswith('http://src.chromium.org/svn/') or
18 » sys.stdout.flush() 16 options['url'].startswith('http://webrtc.googlecode.com/svn/')) or
19 » subprocess.call(c) 17 not re.match(r'^(\d+):(\d+)$', options['range'])):
18 print 'Content-Type: text/html'
19 print ''
20 print ''
21 sys.exit(1)
22 c = ['svn', 'log', '--xml', '-v', '-r', options['range'], options['url']]
23 print 'Content-Type: text/xml'
24 print ''
25 sys.stdout.flush()
26 subprocess.call(c)
20 except Exception, e: 27 except Exception, e:
21 » print e 28 sys.stderr.write(e)
22
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698