Paul Elschot <[EMAIL PROTECTED]> wrote on 16/11/2006 14:03:23:

> Did you "svn add" the new files locally before doing "svn diff"?
>
> It took me a quite while to get the hang of that. It is mentioned here:
> http://wiki.apache.org/jakarta-lucene/HowToContribute

Thanks Paul,

In fact TortoiseSVN does the Add for you automatically when you path
"undpecified" files. But it later shows confusing warnings, plus it fails
to apply the patch that it(self) created, I decided to stop using it.

For the benefit of others, here is what finally works for me on Windows,
not only for modifying existing files but also for adding filed and
directories:
- install cygwin (one time ssetup), including its svn and patch pacakages.
- checkout Lucene sources within cygwin shell using its svn (current
version is 1.3.2).
  svn co http://svn.apache.org/repos/asf/lucene/java/trunk
- ... work the code...
- svn status - to see what have changed
- svn add file/dir - for adding to my local svn repository the new files
and directories (that I created)
- svn patch > patchFile.patch

And, for applying the patch, again from cygwin shell:
- patch  -p0  -i  patchFile.patch

The -p0 was also something that I was missing.

Thanks,
Doron


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to