From e9f3684967a75492bc086d2136cc4d49c852f89b Mon Sep 17 00:00:00 2001 From: Mike McCandless Date: Sat, 20 Aug 2016 04:05:00 -0400 Subject: [PATCH] swap version in is_back_compat_with calls --- dev-tools/scripts/addVersion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-tools/scripts/addVersion.py b/dev-tools/scripts/addVersion.py index 262e099a166..75a22e0c67b 100644 --- a/dev-tools/scripts/addVersion.py +++ b/dev-tools/scripts/addVersion.py @@ -217,7 +217,7 @@ def main(): update_changes('lucene/CHANGES.txt', c.version) update_changes('solr/CHANGES.txt', c.version, get_solr_init_changes()) - if current_version.is_back_compat_with(c.version): + if c.version.is_back_compat_with(current_version): add_constant(c.version, not c.is_latest_version) else: print('\nNot adding constant for version %s because it is no longer supported' % c.version) @@ -232,7 +232,7 @@ def main(): print('\nTODO: ') print(' - Move backcompat oldIndexes to unsupportedIndexes in TestBackwardsCompatibility') print(' - Update IndexFormatTooOldException throw cases') - elif current_version.is_back_compat_with(c.version): + elif c.version.is_back_compat_with(current_version): print('\nTesting changes') check_lucene_version_tests() check_solr_version_tests()