def _stash_msg(self, rev: str, baseline_rev: str, branch: Optional[str]=None, name: Optional[str]=None):
    if (not baseline_rev):
        baseline_rev = rev
    msg = self.STASH_EXPERIMENT_FORMAT.format(rev=rev, baseline_rev=baseline_rev, name=(name if name else ''))
    if branch:
        return f'{msg}:{branch}'
    return msg
def _stash_msg(self, rev: str, baseline_rev: str, branch: Optional[str]=None, name: Optional[str]=None):
    if (not baseline_rev):
        baseline_rev = rev
    msg = self.STASH_EXPERIMENT_FORMAT.format(rev=rev, baseline_rev=baseline_rev, name=(name if name else ))
    if branch:
        return f'{msg}:{branch}'
    return msg