Download:
child 90:f399418c4751
parent 88:3bf161cb8471
89:ba255edcbb21
Anton Shestakov <av6@dwimlabs.net>, Fri, 09 Dec 2016 14:03:55 +0800
bench: skip putting commands into a variable for single use

1 файлов изменено, 6 вставок(+), 4 удалений(-) [+]
bench.py file | annotate | diff | comparison | revisions
--- a/bench.py Fri Dec 09 13:57:24 2016 +0800
+++ b/bench.py Fri Dec 09 14:03:55 2016 +0800
@@ -114,8 +114,9 @@
def guessnew(maxrevs, marks):
""" Pick one continuous span of nodes that still need testing. """
- cmd = [HG, 'log', '-R', TESTHGREPO, '-T', '{node}\n', '-r', 'sort(all(), rev)']
- output = check_output(cmd)
+ output = check_output([
+ HG, 'log', '-R', TESTHGREPO, '-T', '{node}\n', '-r', 'sort(all(), rev)'
+ ])
nodes = output.split()
picking = False
todo = []
@@ -136,8 +137,9 @@
def guessspikes(maxrevs, marks):
- cmd = [HG, 'log', '-R', TESTHGREPO, '-T', '{node}\n', '-r', 'sort(all(), -rev)']
- output = check_output(cmd)
+ output = check_output([
+ HG, 'log', '-R', TESTHGREPO, '-T', '{node}\n', '-r', 'sort(all(), -rev)'
+ ])
nodes = output.split()
todo = []
conn = sqlite3.connect(DBPATH)