diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-05-07 11:23:37 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-05-07 11:23:37 -0400 |
commit | afd622604f9ec4360d50b6e32b11fc66e44d62a1 (patch) | |
tree | 616a532d104186b8f444a67e7ec806880003afbd /b4/mbox.py | |
parent | 82c37bbbebae6678b68580ae11a161223a8ed7b4 (diff) | |
download | b4-afd622604f9ec4360d50b6e32b11fc66e44d62a1.tar.gz |
Do not crash when thread is incomplete
Do not try to calculate indexes on a missing patch in an incomplete
thread.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/mbox.py')
-rw-r--r-- | b4/mbox.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -151,7 +151,7 @@ def mbox_to_am(mboxfile, cmdargs): else: best_matches = None # sort the tags by authordate - gitargs = ['tag', '-l', '--sort=-creatordate'] + gitargs = ['tag', '-l', '--sort=-taggerdate'] lines = b4.git_get_command_lines(None, gitargs) if lines: # Check last 10 tags @@ -159,7 +159,7 @@ def mbox_to_am(mboxfile, cmdargs): logger.debug('Checking base-commit possibility for %s', tag) checked, mismatches = lser.check_applies_clean(topdir, tag) if mismatches == 0 and checked != mismatches: - base_commit = tag + cleanmsg = ' (applies clean to: %s)' % tag break # did they all mismatch? if checked == mismatches: |