summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-05-22 18:12:34 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-05-22 18:12:34 -0400
commit34bcb457865d0b58e08486b2ceb80e9067717e60 (patch)
tree0fbf1a0767e3cafd340ad877c2b2cda7d9c47011
parenta73711ad65e0f5d9ad155713fea2e609cd7fc188 (diff)
downloadb4-34bcb457865d0b58e08486b2ceb80e9067717e60.tar.gz
Suggest what to do when auto-find fails
When we can't auto-find the previous version (usually because the cover letter subject changes), suggest what to do: run b4 am -T and b4 diff on both mboxes. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--b4/diff.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/b4/diff.py b/b4/diff.py
index e9766c9..7ff4e47 100644
--- a/b4/diff.py
+++ b/b4/diff.py
@@ -177,7 +177,8 @@ def diff_same_thread_series(cmdargs):
lower = min(lmbx.series.keys())
if upper == lower:
- logger.critical('Could not find previous revision')
+ logger.critical('ERROR: Could not auto-find previous revision')
+ logger.critical(' Run "b4 am -T" manually, then "b4 diff -m mbx1 mbx2"')
return None, None
if upper not in lmbx.series: