You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2008/05/22 18:59:57 UTC

[Solr Wiki] Update of "FAQ" by OtisGospodnetic

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by OtisGospodnetic:
http://wiki.apache.org/solr/FAQ

The comment on the change is:
Info about applying and reverting patches

------------------------------------------------------------------------------
  
  Bug reports, and [:HowToContribute: patch submissions] should be entered in [http://lucene.apache.org/solr/issue_tracking.html Solr's Bug Tracking Queue].
  
+ == How do I apply patches from JIRA issues? ==
+ 
+ {{{
+ $ cd <your Solr trunk checkout dir>
+ $ svn up
+ $ wget <URL of the patch>
+ $ patch -p0 -i name of the patch --dry-run
+ }}}
+ (note: --dry-run just pretends to apply a patch, so you can see if it would succeed or fail.  Remove --dry-run to *really* apply the patch)
+ 
+ The following should work, too:
+ 
+ {{{
+ $ cd <your Solr trunk checkout dir>
+ $ svn up
+ $ wget <URL to the patch> -O - | patch -p0 --dry-run
+ }}}
+ 
+ Reverting is also one line:
+ {{{
+ $ svn revert -R .
+ }}}
+ 
+ Although this leaves added files, which can be removed with
+ {{{
+ $ svn st | grep '?' | awk '{print $2}' | xargs rm
+ }}}
+ 
+ Another useful trick is to have multiple checkouts of trunk and 
+ "bounce" an active changeset from one to another with
+ {{{
+ $ svn diff | (cd ../otherbranch; patch -p0)
+ }}}
+ 
  == I can't compile Solr, ant says "JUnit not found" or "Could not create task or type of type: junit" ==
  
  As of September 21, 2007, JUnit's JAR is now included in Solr's source repository, so there is no need to install it separately to run Solr's unit tests.  If ant generates a warning that it doesn't understand the junit task, check that you have an "ant-junit.jar" in your ANT_LIB directory (it should be included when you install apache-ant).