[pypy-commit] benchmarks default: really use 'default' as the default branch name if you pass an empty string

antocuni noreply at buildbot.pypy.org
Fri Aug 12 11:03:42 CEST 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: 
Changeset: r141:fef6e585616d
Date: 2011-08-12 11:06 +0200
http://bitbucket.org/pypy/benchmarks/changeset/fef6e585616d/

Log:	really use 'default' as the default branch name if you pass an empty
	string

diff --git a/runner.py b/runner.py
--- a/runner.py
+++ b/runner.py
@@ -113,6 +113,11 @@
     parser.add_option('--postfix', default='', action='store',
                       help='Append a postfix to uploaded executable')
     options, args = parser.parse_args(argv)
+    #
+    # use 'default' if the branch is empty
+    if not options.branch:
+        options.branch = 'default'
+    
     benchmarks = options.benchmarks.split(',')
     for benchmark in benchmarks:
         if benchmark not in BENCHMARK_SET:


More information about the pypy-commit mailing list