# HG changeset patch # User Matt Harbison # Date 1492316978 14400 # Node ID f12b6185d43528af4a252afc022c70b996f7eb17 # Parent c84c83b5df0f2ebe70234e4e30a6d47840106f7a testlib: move the prune alias into a shell script for Windows Cramming all of this directly into an alias doesn't play nicely on Windows. Various test-exchange-obsmarkers-case-XX.t were failing with: abort: cannot select revision when creating marker It turned out that inside debugcommands.debugobsolete(), the following differed from Linux (where they were empty, at least in the case I debugged): 'rev': ['.`;'], 'template': "'{node}\\n'" diff -r c84c83b5df0f -r f12b6185d435 tests/testlib/exchange-obsmarker-util.sh --- a/tests/testlib/exchange-obsmarker-util.sh Sat Apr 15 18:13:10 2017 +0200 +++ b/tests/testlib/exchange-obsmarker-util.sh Sun Apr 16 00:29:38 2017 -0400 @@ -1,6 +1,13 @@ #!/bin/sh # setup config and various utility to test obsolescence marker exchanges tests +cat >> $TESTTMP/prune.sh << EOF +rev=\`hg log --hidden --template '{node}\n' --rev "\$3"\` + +hg debugobsolete --record-parents \$1 "\$2" \$rev \ + && hg up --quiet 'max((::.) - obsolete())' +EOF + cat >> $HGRCPATH <