def METHOD_NAME(self, branch):
    a = QAction(self)
    a.setCheckable(True)
    if branch == vcs.app_repo.current_branch():
        a.setChecked(True)
        a.setEnabled(False)
    self._acts[branch] = a
    self.setBranchStatus(branch)