##// END OF EJS Templates
testlib: move the prune alias into a shell script for Windows...
Matt Harbison -
r32007:f12b6185 default
parent child Browse files
Show More
@@ -1,6 +1,13 b''
1 #!/bin/sh
1 #!/bin/sh
2 # setup config and various utility to test obsolescence marker exchanges tests
2 # setup config and various utility to test obsolescence marker exchanges tests
3
3
4 cat >> $TESTTMP/prune.sh << EOF
5 rev=\`hg log --hidden --template '{node}\n' --rev "\$3"\`
6
7 hg debugobsolete --record-parents \$1 "\$2" \$rev \
8 && hg up --quiet 'max((::.) - obsolete())'
9 EOF
10
4 cat >> $HGRCPATH <<EOF
11 cat >> $HGRCPATH <<EOF
5 [web]
12 [web]
6 # We test http pull and push, drop authentication requirement
13 # We test http pull and push, drop authentication requirement
@@ -29,8 +36,7 b' hgext.strip='
29 # fix date used to create obsolete markers.
36 # fix date used to create obsolete markers.
30 debugobsolete=debugobsolete -d '0 0'
37 debugobsolete=debugobsolete -d '0 0'
31 # poor man substiture to the evolve 'hg prune'. using prune makes the test clearer and
38 # poor man substiture to the evolve 'hg prune'. using prune makes the test clearer and
32 prune =!hg debugobsolete --record-parents \$1 "\$2" \`hg log --hidden --template '{node}\n' --rev "\$3"\`;\
39 prune = !sh $TESTTMP/prune.sh \$1 "\$2" "\$3"
33 hg up --quiet 'max((::.) - obsolete())'
34 EOF
40 EOF
35
41
36 mkcommit() {
42 mkcommit() {
General Comments 0
You need to be logged in to leave comments. Login now