So, you've hacked a file (or several files) and you want to create a patch called myPatch in your home directory. Here's what you need to do
If you have made only one set of changes, and would like to include it all in one patch, all you need to do is go to the top of the Flock source directory (i.e. ~/fbuild/src/flock) and do
$ svn diff > ~/myPatch
If you made multiple sets of changes, but the set of changes that you would like to include is located in a single directory (or groups of directories) then go to the directory that contains the files (and/or directories) that the changes are in. For example, if you hacked files in mozilla/browser/components/flock/blog and mozilla/browser/components/flock/topbar then you could do this to get a patch with all the changes:
$ cd mozilla/browser/components/flock $ svn diff . > ~/myPatch
If you made a bunch of changes in a directory, but only want a patch with changes to one file, then you can specify the file name. For example, made a bunch changes to a number of files in /mozilla/browser/components/flock/blog, but only want a patch with your changes to blogEditor.xul you can cd to that directory and do:
$ svn diff blogEditor.xul > ~/myPatch
Alternatively, if you are at the top of the source directory you can do:
$ svn diff /mozilla/browser/components/flock/blog/blogEditor.xul > ~/myPatch
If you created any new files then you will have to do this before doing svn diff:
$svn addremove
These are just a few examples provided to give an idea of how things can be done. By no means is this comprehensive. Experimentation will flesh out even more possibilities.