I am looking for an option to do an hg update on a repository or to clone it if it doesn\'t exist. So the command has to fail only if something went wrong (clone or update).
cd && hg update || hg clone
If the cd fails because directory doesn't exist, then the hg clone is run from the correct directory level.