From 3a9a1077398a0588302cf2f15853fc0c433f167c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 31 Jul 2020 12:06:41 +0100 Subject: [PATCH] cs-bisection-step: Break out qtxt_common_ok Make this bit of query into a subref which takes a $table argument. No change to the generated query. Signed-off-by: Ian Jackson --- v2: New patch. --- cs-bisection-step | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cs-bisection-step b/cs-bisection-step index f11726a..ba0c642 100755 --- a/cs-bisection-step +++ b/cs-bisection-step @@ -190,6 +190,13 @@ sub flight_rmap ($$) { END }; + my $qtxt_common_tree_ok = sub { + my ($table) = @_; + [<do(<('rev') } AND - url.name LIKE E'tree\\_%' +@{ $qtxt_common_tree_ok->('url') } AND url.use = rev.use AND url.job = rev.job AND (rev.name = 'built_revision_' || substr(url.name,6) OR -- 2.39.5