'Verifies inputs and emits a notifier tag message.'

def create_tag(self):

    revision = self.revision.value()
    tag_name = self.tag_name.value()
    tag_msg = self.tag_msg.value()
    sign_tag = self.sign_tag.isChecked()
    if (not revision):
        qtutils.critical(N_(u'Missing    Revision'), N_(u'Please    specify    a    revision    to    tag.'))
        return
    elif (not tag_name):
        qtutils.critical(N_(u'Missing    Name'), N_(u'Please    specify    a    name    for    the    new    tag.'))
        return
    elif (sign_tag and (not tag_msg) and (not qtutils.confirm(N_(u'Missing    Tag    Message'), N_(u'Tag-signing    was    requested    but    the    tag    message    is    empty.'), N_(u'An    unsigned,    lightweight    tag    will    be    created    instead.\nCreate    an    unsigned    tag?'), N_(u'Create    Unsigned    Tag'), default=False, icon=icons.save()))):
        return
    (status, output, err) = cmds.do(cmds.Tag, tag_name, revision, sign=sign_tag, message=tag_msg)
    if (status == 0):
        qtutils.information(N_(u'Tag    Created'), (N_(u'Created    a    new    tag    named    "%s"') % tag_name), details=(tag_msg or None))
        self.close()
    else:
        qtutils.critical((N_(u'Error:    could    not    create    tag    "%s"') % tag_name), ((N_(u'git    tag    returned    exit    code    %s') % status) + (((output + err) and ((u'\n\n' + output) + err)) or u'')))
