Call patch.diff directly instead of printdiff - this also saves an
extra walk of the working directory.
#!/bin/shhg initecho"Is there an error message when trying to diff non-existing files?"hg diff not foundecho"Is there an error message when trying to add non-existing files?"hg add not found