def _get_baseline(self, rev):
    rev = self.scm.resolve_rev(rev)
    if (rev in self.stash_revs):
        entry = self.stash_revs.get(rev)
        if entry:
            return entry.baseline_rev
        return None
    ref_info = first(exp_refs_by_rev(self.scm, rev))
    if ref_info:
        return ref_info.baseline_sha
    return None
def _get_baseline(self, rev):
    rev = self.scm.resolve_rev(rev)
    if (rev in self.stash_revs):
        entry = self.stash_revs.get(rev)
        if entry:
            return entry.baseline_rev
        return None
    ref_info = first(exp_refs_by_rev(self.scm, rev))
    if ref_info:
        return ref_info.baseline_sha
    return None