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.
changeset: 0:9426b370c206tag: tipuser: My Name <myname@example.com>date: Mon Jan 12 13:46:40 1970 +0000summary: commit-1