Re: New code: svnpatch
From: John Goerzen <jgoerzen_at_complete.org>
Date: 2003-04-03 15:02:54 CEST
Rafael Garcia-Suarez <raphel.garcia-suarez@hexaflux.com> writes:
> Good first attempt at a naive implementation ;-)
Thanks, but I think you're wrong on all three counts :-)
> There are a few problems :
It will notice that directories are gone, and will run svn rm on them
As far as patch removing directories, I don't think it will actually
> It doesn't check the exit status of patch(1).
That's what this code is for:
if not os.WIFEXITED(waitval):
I did test it, and it does work. The "raise" raises a Python
> It will erroneously add *.{orig,rej} files.
No. Patch will exit with a nonzero status if it creates any of those,
-- John
---------------------------------------------------------------------
|
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.