LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 08-27-2009, 03:20 AM   #1
lgp171188
LQ Newbie
 
Registered: Apr 2009
Posts: 16

Rep: Reputation: 0
Problems with patch file creation using svn diff and fold


Hi,
I want to take the svn diff of a file and fold it to 80 columns width.

So I did this
Code:
$ svn diff > ~/patch.diff
$ fold -w 78 ~/patch.diff > ~/patch-fold.diff
But when I try to apply the patch, I get the error like
Code:
patching file trunk/site/py/adminservices/admin.py
patch: **** malformed patch at line 20: )
The lines 19,20 are:

- #res=password.passwd_change_date(user_id,tdate
)
-

This obviously appears that the diff format is disturbed. How to correct this?
 
Old 08-28-2009, 11:49 AM   #2
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Why on earth do you expect a folded patch to work? It is no longer a patch, it is garbage. What are you trying to do? Perhaps we can give you a better solution.

Forrest
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
diff and patch-Deleting the newly generated file shailesh_mishra Linux - Software 3 12-20-2007 08:06 PM
patch -p1 x.diff but no patch command!? pyenos Linux - Hardware 1 03-04-2005 03:10 PM
how can i patch a file from source and diff? gunslinger77 Linux - General 1 04-21-2004 08:23 PM
I have a patch (diff file). What now? Gurduloo Linux - Newbie 2 05-27-2003 02:20 PM
trying to patch i810_audio diff file McQuaid Linux - General 1 11-28-2002 05:26 PM


All times are GMT -5. The time now is 08:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration