def _get_log_raw(repo): """Return the raw contents of the landinglog from the supplied 'repo'. If there is no landinglog then return an empty string. :repo: a callable supporting git commands, e.g. repo("status") :returns: the contents of the landinglog from the supplied 'repo' """ result = "" if phlgit_revparse.get_sha1_or_none(repo, _LOCAL_LANDINGLOG_REF): result = phlgit_show.object_(repo, _LOCAL_LANDINGLOG_REF) return result
def _get_log_raw(clone): """Return the raw contents of the landinglog from the supplied 'clone'. If there is no landinglog then return an empty string. :clone: supports clone.call() for interacting with git :returns: the contents of the landinglog from the supplied 'clone' """ result = "" if phlgit_revparse.get_sha1_or_none(clone, _LOCAL_LANDINGLOG_REF): result = phlgit_show.object_(clone, _LOCAL_LANDINGLOG_REF) return result