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

Pierre-Yves David pierre-yves.david at ens-lyon.org
Thu Mar 7 18:26:40 EST 2019


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at 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

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}"


More information about the Mercurial-devel mailing list