def create_tag(self, tag_name):
<EOL>self.create()<EOL>self.ensure_working_tree()<EOL>logger.info("<STR_LIT>", tag_name, format_path(self.local))<EOL>self.context.execute(*self.get_create_tag_command(tag_name))<EOL>
Create a new tag based on the working tree's revision.

:param tag_name: The name of the tag to create (a string).