You should be ok with the the revision option below. Look for the highest revision number in the list of files in the patch as subversion increments revision number on a repo basis not a file basis so the highest number will represent the current state of all the files when the patch was made if that make sense

Regards
Dave

On 4 Nov 2009, at 03:40, michael8 <mich...@saracatech.com> wrote:


Perfect. This is what I need to know instead of patching 'in the dark'.
Good thing SVN revision cuts across all files like a tag.

Thanks Mike!

Michael


cambridgemike wrote:

You can see what revision the patch was written for at the top of the
patch,
it will look like this:

Index: org/apache/solr/handler/MoreLikeThisHandler.java
===================================================================
--- org/apache/solr/handler/MoreLikeThisHandler.java (revision 772437)
+++ org/apache/solr/handler/MoreLikeThisHandler.java (working copy)

now check out revision 772437 using the --revision switch in svn, patch away, and then svn up to make sure everything merges cleanly. This is a
good guide to follow as well:
http://www.mail-archive.com/solr-user@lucene.apache.org/msg10189.html

cheers,
-mike

On Mon, Nov 2, 2009 at 3:55 PM, michael8 <mich...@saracatech.com> wrote:


Hi,

First I like to pardon my novice question on patching solr (1.4). What I
like to know is, given a patch, like the one for collapse field, how
would
one go about knowing what solr source that patch is meant for since this
is
a source level patch? Wouldn't the exact versions of a set of java files
to
be patched critical for the patch to work properly?

So far what I have done is to pull the latest collapse field patch down
from
http://issues.apache.org/jira/browse/SOLR-236 (field- collapse-5.patch),
and
then svn up the latest trunk from
http://svn.apache.org/repos/asf/lucene/solr/trunk/, then patch and build.
Intuitively I was thinking I should be doing svn up to a specific
revision/tag instead of just latest. So far everything seems fine, but I
just want to make sure I'm doing the right thing and not just being
lucky.

Thanks,
Michael
--
View this message in context:
http://old.nabble.com/apply-a-patch-on-solr-tp26157827p26157827.html
Sent from the Solr - User mailing list archive at Nabble.com.





--
View this message in context: 
http://old.nabble.com/apply-a-patch-on-solr-tp26157827p26189573.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to