From patchwork Mon Jul 13 02:50:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Boichat X-Patchwork-Id: 241405 List-Id: U-Boot discussion From: drinkcat at chromium.org (Nicolas Boichat) Date: Mon, 13 Jul 2020 10:50:01 +0800 Subject: [PATCH 2/2] patman: When no tracking branch is provided, tell the user In-Reply-To: <20200713104956.1.Id4bca8ef9bec7d51122a498ded4f8746ee3f8775@changeid> References: <20200713104956.1.Id4bca8ef9bec7d51122a498ded4f8746ee3f8775@changeid> Message-ID: <20200713104956.2.Ib0ed6ba8cc13905a382730658d814d9a3948feee@changeid> The user can either count the number of patches, or provide a tracking branch. Signed-off-by: Nicolas Boichat Reviewed-by: Simon Glass --- tools/patman/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/patman/main.py b/tools/patman/main.py index a4aa5274c9..2e6ad48c6a 100755 --- a/tools/patman/main.py +++ b/tools/patman/main.py @@ -140,7 +140,8 @@ else: col = terminal.Color() if not options.count: - str = 'No commits found to process - please use -c flag' + str = 'No commits found to process - please use -c flag, or run:\n' \ + ' git branch --set-upstream-to remote/branch' sys.exit(col.Color(col.RED, str)) # Read the metadata from the commits