comparison contrib/perf-utils/discovery-helper.sh @ 41894:aea6bc63884d

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
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 07 Mar 2019 17:21:22 +0100
parents 39020ff59b37
children c1017bceb6ec
comparison
equal deleted inserted replaced
41893:39020ff59b37 41894:aea6bc63884d
49 right="last(sort(heads(all()), 'desc'), $nbheads)" 49 right="last(sort(heads(all()), 'desc'), $nbheads)"
50 50
51 leftsubset="ancestors($left, $depth) and only($left, heads(all() - $left))" 51 leftsubset="ancestors($left, $depth) and only($left, heads(all() - $left))"
52 rightsubset="ancestors($right, $depth) and only($right, heads(all() - $right))" 52 rightsubset="ancestors($right, $depth) and only($right, heads(all() - $right))"
53 53
54 echo '### creating left/right repositories with missing changesets:'
55 echo '# left revset:' '"'${leftsubset}'"'
56 echo '# right revset:' '"'${rightsubset}'"'
57
54 echo '### building left repository:' $left-repo 58 echo '### building left repository:' $left-repo
55 echo '# cloning' 59 echo '# cloning'
56 hg clone --noupdate "${repo}" "${leftrepo}" 60 hg clone --noupdate "${repo}" "${leftrepo}"
57 echo '# stripping' '"'${leftsubset}'"' 61 echo '# stripping' '"'${leftsubset}'"'
58 hg -R "${leftrepo}" --config extensions.strip= strip --rev "$leftsubset" --no-backup 62 hg -R "${leftrepo}" --config extensions.strip= strip --rev "$leftsubset" --no-backup