[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: New code: svnpatch

From: Rafael Garcia-Suarez <raphel.garcia-suarez_at_hexaflux.com>
Date: 2003-04-03 09:41:16 CEST

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

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.