Revert almost all of 5be434785317; add a test
Because of file copies, we should update the manifest dict only after
committing all files.
#!/bin/sh
hg init
echo "Is there an error message when trying to diff non-existing files?"
hg diff not found
echo "Is there an error message when trying to add non-existing files?"
hg add not found