util: add optional path auditor argument to canonpath
The canonpath function will default to creating its own path auditor,
but in some cases it will be useful to use a specialized auditor,
e.g., one that wont abort if a path lies within a subrepository.
#!/bin/sh
# Testing that hghave does not crash when checking features
"$TESTDIR/hghave" --test-features 2>/dev/null