From 4895d85b8d8fa6476a37318e64a06ff581490ee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E7=95=85?= <631866165@qq.com> Date: Wed, 26 Aug 2020 17:52:17 +0800 Subject: [PATCH] optimize info --- subcmds/push.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subcmds/push.py b/subcmds/push.py index d2000d6..f3c057c 100644 --- a/subcmds/push.py +++ b/subcmds/push.py @@ -318,24 +318,24 @@ Gerrit Code Review: http://code.google.com/p/gerrit/ fmt = ' (%s)' else: fmt = '\n (%s)' - print(('[PR FAILED] %-15s %-15s' + fmt) % ( + print(('[PR FAILED] %-15s %-15s' + fmt) % ( branch.project.relpath + '/', branch.name, unicode(branch.pr_error)), file=sys.stderr) - print("'if your PR FAILED ,`repo push` again to create PR after handling the error'", file=sys.stderr) + print("'if your PR FAILED or FORK OK, `repo push` again to create PR after handling the thing'", file=sys.stderr) print() for branch in todo: if branch.uploaded: - print('[PUSH OK] %-15s %s ' % ( + print('[PUSH OK] %-15s %s ' % ( branch.project.relpath + '/', branch.name), file=sys.stderr) if branch.have_pr: if branch.pull_requested: - print('[PR OK] %-15s %s pr_url: %s' % ( + print('[PR OK] %-15s %s pr_url: %s' % ( branch.project.relpath + '/', branch.name, branch.pr_url), file=sys.stderr)