def GetCommonAncestorWithUpstream(self):
    upstream_branch = self.GetUpstreamBranch()
    if (not BranchExists(upstream_branch)):
        DieWithError(('The upstream for the current branch (%s) does not exist anymore.\nPlease fix it and try again.' % self.GetBranch()))
    return git_common.get_or_create_merge_base(self.GetBranch(), upstream_branch)
def GetCommonAncestorWithUpstream(self):
    upstream_branch = self.GetUpstreamBranch()
    if (not BranchExists(upstream_branch)):
        DieWithError(('The upstream for the current branch (%s) does not exist anymore.\nPlease fix it and try again.' % self.GetBranch()))
    return git_common.get_or_create_merge_base(self.GetBranch(), upstream_branch)