<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_scm_info(self):
 """Adds SCM-related info."""

    scm = get_scm()
    if scm:
      revision = scm.commit_id
      branch = scm.branch_name or revision
    else:
      revision, branch = 'none', 'none'
    self.add_infos(('revision', revision), ('branch', branch))