You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by gs...@apache.org on 2011/04/20 00:50:01 UTC
svn commit: r1095232 -
/subversion/trunk/tools/dev/benchmarks/suite1/benchmark.py
Author: gstein
Date: Tue Apr 19 22:50:01 2011
New Revision: 1095232
URL: http://svn.apache.org/viewvc?rev=1095232&view=rev
Log:
Properly construct a file URL in a multi-platform way.
* tools/dev/benchmarks/suite1/benchmark.py:
(run): if REPOS does not start with a slash, then add an extra
Modified:
subversion/trunk/tools/dev/benchmarks/suite1/benchmark.py
Modified: subversion/trunk/tools/dev/benchmarks/suite1/benchmark.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dev/benchmarks/suite1/benchmark.py?rev=1095232&r1=1095231&r2=1095232&view=diff
==============================================================================
--- subversion/trunk/tools/dev/benchmarks/suite1/benchmark.py (original)
+++ subversion/trunk/tools/dev/benchmarks/suite1/benchmark.py Tue Apr 19 22:50:01 2011
@@ -411,7 +411,10 @@ def run(levels, spread, N):
wc = j(base, 'wc')
wc2 = j(base, 'wc2')
- file_url = 'file://%s' % repos
+ if repos.startswith('/'):
+ file_url = 'file://%s' % repos
+ else:
+ file_url = 'file:///%s' % repos
so, se = svn('--version')
if not so: