

def get_latest_tag_name(self):
    cmd_log = [self._executable, 'log', '--rev', '.', '--template', '{latesttagdistance}']
    result_log = self._run_command(self)
    if result_log['returncode']:
        raise RuntimeError(('Could not fetch latest tag:\n%s' % result_log['output']))
    tag_name = result_log['output']
    return tag_name

dataset/ETHPy150Open ros-infrastructure/catkin_pkg/src/catkin_pkg/changelog_generator_vcs.py HgClient.get_latest_tag_name/VarMisuse@34/58 `cmd_log`->`self`