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.
# should print nothing# should print ? b/x? b/x# should print A b/xA b/x# should forget b/xforgetting b/x# should print nothing