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/shunset HGUSEREMAIL="My Name <myname@example.com>"export EMAILhg init testcd testtouch asdfhg add asdfhg commit -d '1000000 0' -m commit-1hg tip