def merge_message(revision): """Return a merge message for FETCH_HEAD.""" fetch_head = git.git_path("FETCH_HEAD") if core.exists(fetch_head): return git.fmt_merge_msg("--file", fetch_head)[STDOUT] return "Merge branch '%s'" % revision
def merge_message(revision): """Return a merge message for FETCH_HEAD.""" fetch_head = git.git_path('FETCH_HEAD') if core.exists(fetch_head): return git.fmt_merge_msg('--file', fetch_head)[STDOUT] return "Merge branch '%s'" % revision
def merge_message(revision): """Return a merge message for FETCH_HEAD.""" fetch_head = git.git_path('FETCH_HEAD') if os.path.exists(fetch_head): return git.fmt_merge_msg('--file', fetch_head) return "Merge branch '%s'" % revision