tests/test-check-format.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Wed, 22 Feb 2023 18:07:34 +0100
branchstable
changeset 50171 d956ceed3289
parent 46870 41d43d12c2c4
child 51919 ceaf92d6d380
permissions -rw-r--r--
transaction: tests we don't overwrite branch changes on abort We actually do not! Great. …Why are doing a backup of the `branch` files at transaction creation then‽

#require black test-repo

Black needs the real USERPROFILE in order to run on Windows
#if msys
  $ USERPROFILE="$REALUSERPROFILE"
  $ export USERPROFILE
#endif

  $ cd $RUNTESTDIR/..
  $ black --check --diff `hg files 'set:(**.py + grep("^#!.*python")) - mercurial/thirdparty/**'`