How to apply an svn diff

Stephen Montgomery-Smith stephen at missouri.edu
Tue Jan 8 23:32:46 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/08/2013 03:49 PM, Matthew Seaman wrote:
> On 08/01/2013 21:47, Paul Schmehl wrote:
>> Once you've created an svn diff and submitted it using send-pr,
>> how is the diff applied to update the port?  I can't seem to
>> figure this out from reading the svn docs.
> 
> use patch(1)

While we are on the subject of patch, has anyone else noticed the
following annoyance?

Suppose you create a patch against a non-existent file (using diff
- -N), and let's suppose the old file is dir-orig/xxx, and the new file
is dir/xxx.

Then if I apply the patch to dir, and dir-orig doesn't exist, then
patch issues all kinds of horrible error messages, and the new file is
installed in the current directory rather than dir.

I'm not sure if it is a bug or a feature.  But it has bitten me more
than once.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJQ7KyFAAoJEC3xK9GaktgHCecH/1b/MgIe177Xo0TGTvlWs0gD
sU/N1oUOj/EUUgb1DJZCn+V6v6fOehVNuGydi/RqOXsAlS99QrNAxpwG6WFmb3wz
dzv2sCwq4nbXv3jjssZRPHZpcvIT6HT3EScffAaGHEdLrYHWMHAjUrfyfuvBcJ6p
HyI7+Sa3yebtCJLyxzZQGijMw9xiwk/VNO9AjbB4A3zjoM8veBSlHV3d7LSfov4H
QNDJDLuVvTo4Wko9MuBByaQXmslUVR5ekI1Fvenud00ujV/7Artxe8bSawUT0H3K
pBs00fj3XT2ik6Nitvzh1W82nLAM5oOhdbL9bzumQjIqdSrnoTN9Fp6ZdA9U8nY=
=Vbr7
-----END PGP SIGNATURE-----


More information about the freebsd-ports mailing list