Prompt user to continue when there is a uncommitted diff.

Sometimes the user may forget to commit the change before putting a patch to revision, which end up being a empty revision, which is confusing.
This patch gives user a warning when there is a uncommitted diff.