def __init__(self, *args, **kwargs):
        super(Branch, self).__init__(*args, **kwargs)
        self.parent_refspec = self.repo.branch_parents.get(self.refspec, self.refspec)
        log.info('Processing %s' % self.name)
        # TODO: find a better way to determine parent refspec
        # Find the common merge ancestor to show ahead/behind statistics.
        self.merge_refspec = None
        if self.repo.master_sha:
            merge_refspec = self.repo.shell('git', 'merge-base', self.repo.master_sha, self.sha).split
            if merge_refspec:
                self.merge_refspec = merge_refspec[0].strip()
dataset/ETHPy150Open nowells/git-goggles/gitgoggles/git.py/Branch.__init__/original