cat: default to working dir parent instead of tip
This introduces a defaultrev function that chooses
the working dir parent if a revision isn't specified,
and uses it in several places.
#!/bin/shhg initmkfifo phg serve --stdio < p &P=$!(echo lock; echo addchangegroup; sleep 5) > p &Q=$!sleep 3kill -HUP $Pwaitls .hg