Applying a patch against an empty file fails.

Jack Cummings jack at mudshark.org
Wed Sep 14 13:26:58 PDT 2005


Hello, 

I'm tracking down a failure in the monotone (venge.net/monotone) testsuite
under FreeBSD 5.4. 

Applying the patch:

--snip--
# 
# old_revision [2d5e7ffab45a186a70d824a723da014b9cae9506]
# 
# patch "foo"
#  from [83f5a5c359f3dc8317519240e32f1f51f68bc051]
#    to [da39a3ee5e6b4b0d3255bfef95601890afd80709]
# 
============================================================
--- foo 83f5a5c359f3dc8317519240e32f1f51f68bc051
+++ foo da39a3ee5e6b4b0d3255bfef95601890afd80709
@@ -1,2 +0,0 @@
-1
-2
--snip--

using 'patch -p0 -R < monodiff' to an empty file 'foo' fails. 

--Jack 

--
Jack (John) Cummings                           http://mudshark.org/
PGP fingerprint: 0774 D073 E386 B70B 6B16  2D2B 1DD8 F8B0 CCF0 FAEE
Now playing on Prime:    The Answer -- Incubus
Now playing on Remedial: Lie in Our Graves -- Dave Matthews Band
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050914/1e936c74/attachment.bin


More information about the freebsd-questions mailing list