summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--b4/__init__.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index a382ef9..f0d6e07 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -1458,14 +1458,13 @@ class LoreMessage:
parts = ['PATCH']
if self.lsubject.rfc:
parts.append('RFC')
- if not self.revision_inferred:
- if self.reroll_from_revision:
- if self.reroll_from_revision != self.revision:
- parts.append('v%d->v%d' % (self.reroll_from_revision, self.revision))
- else:
- parts.append(' %s v%d' % (' ' * len(str(self.reroll_from_revision)), self.revision))
+ if self.reroll_from_revision:
+ if self.reroll_from_revision != self.revision:
+ parts.append('v%d->v%d' % (self.reroll_from_revision, self.revision))
else:
- parts.append('v%d' % self.revision)
+ parts.append(' %s v%d' % (' ' * len(str(self.reroll_from_revision)), self.revision))
+ elif not self.revision_inferred:
+ parts.append('v%d' % self.revision)
if not self.lsubject.counters_inferred:
parts.append('%d/%d' % (self.lsubject.counter, self.lsubject.expected))