Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Using Eclipse => Subclipse (Create Patch, Apply Patch context menu options, the clipboard one is the easiet"easiest")
  • Using Toirtoise from Files Explorer (Create Patch, Apply Patch context menu options). Tortoise does not exist on Linux/Mac but there are some equivalent tools.
  • Making a diff with subversion on command line : svn di fileName > filename.patch

...

To patch on Windows you have to download patch.exe. But you may encouter EOL problems with patch.exe.
That's why I prefer to use TortoiseEclipse's "Apply Patch" option in a 1st step. Tortoise is the best SVN and CVS UI existing, either on Linux or Windows. Besides Tortoise comes from Tigris too.
Then if I get problems with Tortoise (or Eclipsewich is great to use with clipboard. If you get issue with Subclipse and work on Windows you may try Tortoise's "Apply Patch" option wich is near Tortoise for patching but less supple for this option and far more ingeneral) I . If I get problems with Tortoise I then use the patch command. Something to understand is that Tortoise actually use "SVN merge" so in certains cases problems arise.
To avoid EOL problems with the patch command, I use a bat file patchdos.bat :

...

What is the best practice to modify an existing component or create a new one?

From a an old thread by Chris Howe and David Jones. Note that it's now easier to use the create-component ant target (just try "ant -p" to know more)

Chris Howe: Lets say that I want to create an application that most closely matches the ecommerce app. I should start with copied versions the following files only.

...