You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2015/04/15 23:37:21 UTC
svn commit: r1673965 - in /lucene/dev/branches/lucene_solr_5_1: ./
dev-tools/ dev-tools/scripts/addBackcompatIndexes.py lucene/
lucene/backward-codecs/
lucene/backward-codecs/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java
Author: sarowe
Date: Wed Apr 15 21:37:21 2015
New Revision: 1673965
URL: http://svn.apache.org/r1673965
Log:
Backcompat index generation: add docs, and point to usage information on the wiki: http://wiki.apache.org/lucene-java/ReleaseTodo#Generate_Backcompat_Indexes (merged trunk r1673962)
Modified:
lucene/dev/branches/lucene_solr_5_1/ (props changed)
lucene/dev/branches/lucene_solr_5_1/dev-tools/ (props changed)
lucene/dev/branches/lucene_solr_5_1/dev-tools/scripts/addBackcompatIndexes.py
lucene/dev/branches/lucene_solr_5_1/lucene/ (props changed)
lucene/dev/branches/lucene_solr_5_1/lucene/backward-codecs/ (props changed)
lucene/dev/branches/lucene_solr_5_1/lucene/backward-codecs/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java
Modified: lucene/dev/branches/lucene_solr_5_1/dev-tools/scripts/addBackcompatIndexes.py
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_5_1/dev-tools/scripts/addBackcompatIndexes.py?rev=1673965&r1=1673964&r2=1673965&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_5_1/dev-tools/scripts/addBackcompatIndexes.py (original)
+++ lucene/dev/branches/lucene_solr_5_1/dev-tools/scripts/addBackcompatIndexes.py Wed Apr 15 21:37:21 2015
@@ -13,6 +13,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+
+# For usage information, see:
+#
+# http://wiki.apache.org/lucene-java/ReleaseTodo#Generate_Backcompat_Indexes
+
+
import os
import sys
sys.path.append(os.path.dirname(__file__))
@@ -182,7 +188,11 @@ def download_release(version, temp_dir,
return source
def read_config():
- parser = argparse.ArgumentParser(description='Add backcompat index and test for new version')
+ parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter,
+ description='''\
+Add backcompat index and test for new version. See:
+http://wiki.apache.org/lucene-java/ReleaseTodo#Generate_Backcompat_Indexes
+''')
parser.add_argument('--force', action='store_true', default=False,
help='Redownload the version and rebuild, even if it already exists')
parser.add_argument('--no-cleanup', dest='cleanup', action='store_false', default=True,
Modified: lucene/dev/branches/lucene_solr_5_1/lucene/backward-codecs/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_5_1/lucene/backward-codecs/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java?rev=1673965&r1=1673964&r2=1673965&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_5_1/lucene/backward-codecs/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java (original)
+++ lucene/dev/branches/lucene_solr_5_1/lucene/backward-codecs/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java Wed Apr 15 21:37:21 2015
@@ -77,11 +77,21 @@ import org.junit.AfterClass;
import org.junit.BeforeClass;
/*
- Verify we can read the pre-5.0 file format, do searches
- against it, and add documents to it.
+ Verify we can read previous versions' indexes, do searches
+ against them, and add documents to them.
*/
public class TestBackwardsCompatibility extends LuceneTestCase {
+ // Backcompat index generation, described below, is mostly automated in:
+ //
+ // dev-tools/scripts/addBackCompatIndexes.py
+ //
+ // For usage information, see:
+ //
+ // http://wiki.apache.org/lucene-java/ReleaseTodo#Generate_Backcompat_Indexes
+ //
+ // -----
+ //
// To generate backcompat indexes with the current default codec, run the following ant command:
// ant test -Dtestcase=TestBackwardsCompatibility -Dtests.bwcdir=/path/to/store/indexes
// -Dtests.codec=default -Dtests.useSecurityManager=false