changeset 21202:c04e5e937139 stable

revsetbenchmark: fix error raising We want to display the commands, not all arguments of the function. (The old code actually crash, failing to joining a list of lists.)
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 25 Apr 2014 13:44:51 -0700
parents c8b9c6147108
children 9f12d8665c7b
files contrib/revsetbenchmarks.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/revsetbenchmarks.py	Mon Apr 28 16:28:52 2014 -0700
+++ b/contrib/revsetbenchmarks.py	Fri Apr 25 13:44:51 2014 -0700
@@ -22,7 +22,7 @@
     proc = Popen(*args, **kwargs)
     output, error = proc.communicate()
     if proc.returncode != 0:
-        raise CalledProcessError(proc.returncode, ' '.join(args))
+        raise CalledProcessError(proc.returncode, ' '.join(args[0]))
     return output
 
 def update(rev):