Try to return as a string the bzr revision ID of directory DIR. This uses the dirstate file's parent revision entry. Returns nil if unable to find this information.