bug-patch
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-patch] Patch not creating new files when no contents


From: brad laney
Subject: [bug-patch] Patch not creating new files when no contents
Date: Wed, 6 May 2009 12:53:58 -0700

This is a .patch file created using svn diff (newest version). The diff was that one file was new with no contents, and the other file was modified.
 
 
svn diff --old "https://myrepo/folder" --new "https://myrepo/folder2" > mypatch.patch
 
Index: lic/newfile.txt
===================================================================
Index: lic/blahblah.txt
===================================================================
--- lic/blahblah.txt (removed) (revision 1074)
+++ lic/blahblah.txt (removed) (revision 1074)
@@ -1,3 +1,3 @@
 aaaaaa
-bbbbbb
+bbxbbb
 cccccc
\ No newline at end of file

 
Then I ran the patch..
 
patch -p0 -u -i "mypatch.patch" -d "myfolder3" --no-backup-if-mismatch
 
 
 
newfile.txt does not get created
 
 
I've already internet searched but the results I looked through are flooded with "how to delete empty files".


HotmailĀ® has a new way to see what's up with your friends. Check it out.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]