tests/testlib/common.sh
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 28 Feb 2023 19:36:46 +0100
branchstable
changeset 50239 491f3dd080eb
parent 46764 685383486d0a
permissions -rw-r--r--
dirstate: deal with read-race for pure rust code path (rhg) If we cannot read the dirstate data, this is probably because a writing process wrote it under our feet. So refresh the docket and try again a handful of time.

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