def get_exact_name(self, rev: str):
    'Returns preferred name for the specified revision.\n\n        Prefers tags, branches (heads), experiments in that orer.\n        '
    exclude = f'{EXEC_NAMESPACE}/*'
    ref = self.scm.describe(rev, base=EXPS_NAMESPACE, exclude=exclude)
    if ref:
        return ExpRefInfo.from_ref(ref).name
    return None
Returns preferred name for the specified revision.

Prefers tags, branches (heads), experiments in that orer.
def get_exact_name(self, rev: str):
    'Returns preferred name for the specified revision.\n\n        Prefers tags, branches (heads), experiments in that orer.\n        '
    exclude = f'{EXEC_NAMESPACE}/*'
    ref = self.scm.describe(rev, base=EXPS_NAMESPACE, exclude=exclude)
    if ref:
        return ExpRefInfo.from_ref(ref).name
    return None