# HG changeset patch # User Anton Shestakov # Date 1728826780 -14400 # Node ID 753e378208b7e31cd36ee17a9757d24dd99b0669 # Parent 374f1c5995ddc576753d3744c4a67cc4ddfb40a1 tests: use testrepohg in test-check-commit.t diff -r 374f1c5995dd -r 753e378208b7 tests/test-check-commit.t --- a/tests/test-check-commit.t Sun Oct 13 17:40:01 2024 +0400 +++ b/tests/test-check-commit.t Sun Oct 13 17:39:40 2024 +0400 @@ -1,5 +1,7 @@ #require test-repo + $ . "$RUNTESTDIR/helpers-testrepo.sh" + Enable obsolescence to avoid the warning issue when obsmarkers are found $ cat << EOF >> $HGRCPATH @@ -13,8 +15,8 @@ $ cd $TESTDIR/.. - $ for node in `hg log --rev 'not public() and ::. and not desc("# no-check-commit")' --template '{node|short}\n'`; do - > hg export $node | ${RUNTESTDIR}/../contrib/check-commit > ${TESTTMP}/check-commit.out + $ for node in `testrepohg log --rev 'not public() and ::. and not desc("# no-check-commit")' --template '{node|short}\n'`; do + > testrepohg export $node | ${RUNTESTDIR}/../contrib/check-commit > ${TESTTMP}/check-commit.out > if [ $? -ne 0 ]; then > echo "Revision $node does not comply with rules" > echo '------------------------------------------------------'