view tests/test-check-commit.t @ 5533:044ce00dfa88 stable

tests: use the modern config setting to enable evolution in topic tests When adding `hg pick --config extensions.evolve=` to test-topic-dest.t to investigate issue6406, it failed with `abort: unknown command 'pick'`. This is a manifestation of issue6039. I made several attempts at determining the root cause, and while I'm still worried about *why* a config setting can cause the extension to fail to fully initialize, there are some topic bugs to cleanup and I don't feel like spending more time on this.
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 05 Sep 2020 00:07:01 -0400
parents a08bd434a19b
children c7abe71d749d
line wrap: on
line source

#require test-repo

Enable obsolescence to avoid the warning issue when obsmarker are found

  $ cat << EOF >> $HGRCPATH
  > [diff]
  > git = yes
  > [experimental]
  > evolution=all
  > EOF

Go back in the hg repo

  $ 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
  >    if [ $? -ne 0 ]; then
  >        echo "Revision $node does not comply with rules"
  >        echo '------------------------------------------------------'
  >        cat ${TESTTMP}/check-commit.out
  >        echo
  >   fi
  > done