tests/fake-editor.sh
author Simon Farnsworth <simonfar@fb.com>
Sun, 16 Oct 2016 09:52:53 -0700
branchstable
changeset 1742 970a4c13ebc3
permissions -rwxr-xr-x
evolve: lock the working copy early in next and prev (issue5244) Both next and prev depend on a consistent working copy, but were waiting to take the lock until they were ready to alter the working copy. Take the lock before reading the working copy state, and do not release it until we're definitely not going to change the working copy.

#!/bin/sh
sleep 5
echo "new desc" >> $1