'hg id -b -i -t returns a string in the format:
"<changeset>[+] <branch_name> <tag>"
This format lists the state of the current working copy,
and indicates whether there are uncommitted changes by the
plus sign. Otherwise, the sign is omitted.
Read the full description via hg id --help'

def get_revision(self):

    (rc, out, err) = self._command(['id', '-b', '-i', '-t', '-R', self.dest])
    if (rc != 0):
        self.module.fail_json(msg=err)
    else:
        return to_native(out).strip('\n')
