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/06/10 20:38:40 UTC
[Solr Wiki] Update of "FAQ" by HossMan
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 HossMan:
http://wiki.apache.org/solr/FAQ
The comment on the change is:
point how to test patches info to better page
------------------------------------------------------------------------------
== How do I apply patches from JIRA issues? ==
+ Information about testing patches can be found on the [:HowToContribute#TestingPatches: How To Contribute] wiki page
- {{{
- $ 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" ==