Adds --diffstat option to log-like commands. e.g. `hg log --diffstat`. * first patch changes mq to pass `diffopts.context = 0` correctly. * second patch makes qdiff and diff share codes. * last patch implements `log --diffstat` Updated to follow the latest ui.write(..., label) changes.