Mercurial > evolve
comparison tests/test-discovery-obshashrange-cache.t @ 5851:0c896e79d9aa stable
tests: simplify character sorting script
Since `greo -o .` doesn't catch line breaks, we can use simple echo instead of
printf (or echo -n that was there even before that).
Holding the result in a file is also not necessary, not sure why it was done
this way.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Mon, 15 Mar 2021 18:45:18 +0800 |
parents | cbfd36046969 |
children | f4b762cf41c0 |
comparison
equal
deleted
inserted
replaced
5850:b2d4cc5dff79 | 5851:0c896e79d9aa |
---|---|
24 $ hg init main | 24 $ hg init main |
25 | 25 |
26 $ hg -R main debugbuilddag '.+7' | 26 $ hg -R main debugbuilddag '.+7' |
27 | 27 |
28 $ for node in `hg -R main log -T '{node}\n'`; do | 28 $ for node in `hg -R main log -T '{node}\n'`; do |
29 > printf $node | grep -o . | sort |tr -d "\n" > ancfile | 29 > anc=`echo $node | grep -o . | sort | tr -d "\n"` |
30 > anc=`cat ancfile` | |
31 > rm ancfile | |
32 > echo "marking $anc as predecessors of $node" | 30 > echo "marking $anc as predecessors of $node" |
33 > hg -R main debugobsolete $anc $node | 31 > hg -R main debugobsolete $anc $node |
34 > done | 32 > done |
35 marking 000011223334456677789aaaaabbbbcccddddeef as predecessors of 4de32a90b66cd083ebf3c00b41277aa7abca51dd | 33 marking 000011223334456677789aaaaabbbbcccddddeef as predecessors of 4de32a90b66cd083ebf3c00b41277aa7abca51dd |
36 1 new obsolescence markers | 34 1 new obsolescence markers |