view tests/test-check-setup-manifest.t @ 5501:1896d6bc574b stable

split: demonstrate that discard after more than one commit is misbehaving The `assert` that this patch removes was introduced in 9242d0b5f74d, when we didn't have the test that this patch adds. Without the `assert` we can actually see the incorrect behavior. With it, the test would throw an AssertionError just before "forgetting c", when hg split is handling the second discard action.
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 22 Aug 2020 07:18:55 +0800
parents 39d84b395343
children f2139537c2be
line wrap: on
line source

#require test-repo

  $ checkcm() {
  >   if ! (which check-manifest > /dev/null); then
  >     echo skipped: missing tool: check-manifest;
  >     exit 80;
  >   fi;
  > };
  $ checkcm
  $ cat << EOF >> $HGRCPATH
  > [experimental]
  > evolution=all
  > EOF

Run check manifest:

  $ cd $TESTDIR/..
  $ check-manifest
  lists of files in version control and sdist match