view tests/testlib/common.sh @ 47067:ea563187ee7c stable

tests: change the fixer commands to use the buffer attribute on stdio objects Otherwise `\r` was getting injected into the fixed lines and throwing off the commit hashes on Windows when the fixer is invoked with py3. Differential Revision: https://phab.mercurial-scm.org/D10637
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 02 May 2021 16:56:20 -0400
parents 685383486d0a
children
line wrap: on
line source

mkcommit() {
   name="$1"
   shift
   echo "$name" > "$name"
   hg add "$name"
   hg ci -m "$name" "$@"
}