

def get_tags(self):
    cmd_tag = [self._executable, 'tags', '-q']
    result_tag = self._run_command(cmd_tag)
    if result_tag['returncode']:
        raise RuntimeError(('Could not fetch tags:\n%s' % result_tag['output']))
    tag_names = result_tag['output'].splitlines()
    tags = []
    for tag_name in tag_names:
        cmd = [self._executable, 'log', '-r', tag_name, '--template', '{date|isodatesec}']
        result = self._run_command(cmd)
        if result['returncode']:
            raise RuntimeError(('Could not fetch timestamp:\n%s' % result['output']))
        tags.append(Tag(tag_name, result['output']))
    self._truncate_timestamps(tags)
    return tags

dataset/ETHPy150Open ros-infrastructure/catkin_pkg/src/catkin_pkg/changelog_generator_vcs.py HgClient.get_tags/original