aboutsummaryrefslogtreecommitdiff
path: root/tools/patman/control.py
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2020-07-13 10:50:01 +0800
committerSimon Glass <sjg@chromium.org>2020-07-20 11:37:47 -0600
commit28e0367fc879a408b964c070b55e4255e6d1eac5 (patch)
treed9132c49cc373cecc0354be006e13259f694035b /tools/patman/control.py
parent754c05caf306c7b587698193477bed12014e4164 (diff)
downloadu-boot-28e0367fc879a408b964c070b55e4255e6d1eac5.zip
u-boot-28e0367fc879a408b964c070b55e4255e6d1eac5.tar.gz
u-boot-28e0367fc879a408b964c070b55e4255e6d1eac5.tar.bz2
patman: When no tracking branch is provided, tell the user
The user can either count the number of patches, or provide a tracking branch. Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/control.py')
-rw-r--r--tools/patman/control.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/patman/control.py b/tools/patman/control.py
index 8f4afea..67e8f39 100644
--- a/tools/patman/control.py
+++ b/tools/patman/control.py
@@ -48,8 +48,9 @@ def prepare_patches(col, branch, count, start, end, ignore_binary):
count = (gitutil.CountCommitsToBranch(branch) - start)
if not count:
- sys.exit(col.Color(col.RED,
- '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
to_do = count - end