Skip to contentSkip to conversation

Fix misleading error message on cherry-picked patches

PATCH Applied Rob Herring (Arm) 2 participants 2 messages Apr 29, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix misleading error message on cherry-picked patches

When passing '-P1,2,3' to cherry-pick specific patches, b4 erroneously logs error messages:

Unknown range value specified: 1
Unknown range value specified: 2
Unknown range value specified: 3

The actual cherry-picking works correctly.

---
 src/b4/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/b4/__init__.py +1 -1
index de324d0f714b..ee0196cae118 100644
@@ -3666,7 +3666,7 @@ def parse_int_range(intrange: str, upper: int) -> Iterator[int]:
                 yield i
             else:
                 logger.critical('Unknown range value specified: %s', n)
-                continue
+            continue
         except ValueError:
             pass
 
Signature · 1 line
2.47.2
#1 lore raw
Quoted 8 lines · Rob Herring (Arm)

When passing '-P1,2,3' to cherry-pick specific patches, b4 erroneously logs error messages:

Unknown range value specified: 1
Unknown range value specified: 2
Unknown range value specified: 3

[...]

Applied, thanks!

[1/1] Fix misleading error message on cherry-picked patches

      commit: 64971039f772f9910d0747f8bd509dd425a76d64

Best regards,

Signature · 1 line
Konstantin Ryabitsev <[email protected]>