John Goerzen <jgoerzen@complete.org> wrote:
> Hello,
>
> After getting annoyed at the slowness of svn_load_dirs dealing with
> large kernel trees, and the general cumbersomeness of applying
> patches, I wrote svnpatch. It's a simple Python script that is a
> wrapper around patch. It will run patch, detect what has been added
> or removed, and execute appropriate svn add / svn rm commands.
Good first attempt at a naive implementation ;-)
There are a few problems :
It doesn't appear to handle removed/added directories. (patch(1)
automatically deletes dirs when all files in them have been
removed by a patch. Recursively.)
It doesn't check the exit status of patch(1).
It will erroneously add *.{orig,rej} files.
> You run it like this, from your working directory:
>
> bzcat ~/kernel/patch-2.4.20.bz2 | svnpatch -p1
>
> The -p1 (and any other arguments) get paseed to patch.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Apr 3 09:41:28 2003