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 AndrewSavory: http://wiki.apache.org/solr/HowToContribute The comment on the change is: Add hint posted by Mike Klaas on the dev list ------------------------------------------------------------------------------ == Generating a patch == A "patch file" is the format that all good contributions come in. It bundles up everything that is being added, removed, or changed in your contribution. + + + == Testing patches == + + You can easily download a patch from JIRA and test it by doing the following: + + {{{ + wget http://issues.apache.org/jira/secure/attachment/12381498/SOLR-563.patch -O - | patch -p0 + }}} + + Reverting to pre-patch state is one line: + {{{ + svn revert -R . + }}} + + Though 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) + }}} + === Unit Tests ===
