Patchwork [2,of,3,"] discovery-helper: echo the stripped revsets early

login
register
mail settings
Submitter Pierre-Yves David
Date March 7, 2019, 11:26 p.m.
Message ID <30752188271ad9943379.1552001200@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/39127/
State Accepted
Headers show

Comments

Pierre-Yves David - March 7, 2019, 11:26 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1551975682 -3600
#      Thu Mar 07 17:21:22 2019 +0100
# Node ID 30752188271ad9943379033ec169ef403df2b6c0
# Parent  9694c8fa7224192d35ff900c8523027e2b1a5d6b
# EXP-Topic perf-utils
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 30752188271a
discovery-helper: echo the stripped revsets early

Having them printed early make it easy for a user to just grab the generated
revset and directly uses them

Patch

diff --git a/contrib/perf-utils/discovery-helper.sh b/contrib/perf-utils/discovery-helper.sh
--- a/contrib/perf-utils/discovery-helper.sh
+++ b/contrib/perf-utils/discovery-helper.sh
@@ -51,6 +51,10 @@  right="last(sort(heads(all()), 'desc'), 
 leftsubset="ancestors($left, $depth) and only($left, heads(all() - $left))"
 rightsubset="ancestors($right, $depth) and only($right, heads(all() - $right))"
 
+echo '### creating left/right repositories with missing changesets:'
+echo '# left  revset:' '"'${leftsubset}'"'
+echo '# right revset:' '"'${rightsubset}'"'
+
 echo '### building left repository:' $left-repo
 echo '# cloning'
 hg clone --noupdate "${repo}" "${leftrepo}"