Bug Tracker
SourceForge
Feedback
Wiki
Stor
It is currently May 25th, 2017, 4:28 pm




 Page 1 of 1 [ 1 post ] 
Author Message
 Post subject: [INFO] How to use and create a .patch file.
PostMessage posted...: May 25th, 2014, 11:02 am 
User avatar
More than 8000 posts
More than 8000 posts
Developer

Joined: July 8th, 2006, 7:03 pm
Posts: 8229
Location: Virginia
United States of America
WARNING: Always use the Root of MeediOS Solution

Use a .patch file:

Download the source from svn (How to use Tortoise SVN)
Right click the folder and select TortoiseSVN
Click Apply Patch (towards the bottom of the menu)
Attachment:
patch1.jpg
patch1.jpg [ 204.85 KiB | Viewed 3575 times ]


Browse to and select the patch file
Attachment:
patch2.jpg
patch2.jpg [ 315.03 KiB | Viewed 3575 times ]


Double click a entry in the file list
Attachment:
patch3.jpg
patch3.jpg [ 190.81 KiB | Viewed 3575 times ]


It will then load the original and the patched code.
Attachment:
patch4.jpg
patch4.jpg [ 521.26 KiB | Viewed 3575 times ]

It will display them side by side. Afaik, the differences are highlighted.

Click File > Save to save the changes
OR
Right click the file list and select Patch All or Patch Selected
Attachment:
patch5.jpg
patch5.jpg [ 84.03 KiB | Viewed 3575 times ]

Attachment:
patch6.jpg
patch6.jpg [ 19.49 KiB | Viewed 3575 times ]


I think I did this right, you can also learn more about this by right clicking a svn folder, select TortoiseSVN, and click Help.

Of course a .patch can be reverted. You just need to right click on the patched file and select "Revert"
Attachment:
patch7.jpg
patch7.jpg [ 207.04 KiB | Viewed 3575 times ]


Create a .patch file

Use also the right click and select "Create a patch"
Attachment:
patch8.jpg
patch8.jpg [ 214.41 KiB | Viewed 3575 times ]


Select all file from modified file and click "OK"
Attachment:
25.05.2014 à 10h 51m 23s 318'.jpg
25.05.2014 à 10h 51m 23s 318'.jpg [ 61.34 KiB | Viewed 3575 times ]

EDIT: Don't forget to select the new files (These files will be included in the patch and be added to the tester computer.)

Save to a .patch file (need to write the file extension manually)
Attachment:
25.05.2014 à 10h 54m 00s 030'.jpg
25.05.2014 à 10h 54m 00s 030'.jpg [ 230.63 KiB | Viewed 3575 times ]


Send the patch on the forum to be tested


Last edited by skypichat on October 12th, 2014, 1:56 pm, edited 3 times in total.
Reason: Fixed typos



_________________
Richard

"And I am not convinced we have added value by getting more complicated."
~Ted Benna

How to apply a patch
Bing Rewards (Earned $155 Amazon, 12 Mo Hulu+, 100 GB OneDrive)
OneDrive
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

cron