From 34bcb457865d0b58e08486b2ceb80e9067717e60 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Fri, 22 May 2020 18:12:34 -0400 Subject: 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 --- b4/diff.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3