This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Questions about patches...

Tags: None
(comma "," separated)
User avatar
xeriouxi
Registered Member
Posts
10
Karma
0
OS

Questions about patches...

Sat Jan 03, 2009 11:52 pm
Hi!

I'm sorry if this is the wrong place to post this question but it looked to be the only suitable place for it.

I love the KDE project and I try to help out using the KDE Bug Tracking System. I'm hopefully going to start looking into re-learning software development again as I haven't done it in quite a long time, but for now I'm just doing really simple things so that I can get a look at how everything works... which is where my first question comes in.

At the moment I'm trying to fix really trivial and simple things, like typo and grammar errors. I learned from a friend that I have to use a revision control system in order to get the latest version of the source code. How would I go about downloading this?

My second question is regarding the actual patching. Once I have edited the code, what do I do then? If I'm not mistaken, I believe I have to create a special kind of patch file that shows the difference(s) between the latest version of the code available on the revision control system and my changes so that I can upload it as a proposed patch to the KDE Bug Tracking System. Is this patch created in the KDevelop IDE that I use?

Thanks for any help! :-)


xeriouxi... proud to be a member of the KDE forums since December 2008!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

RE: Questions about patches...

Sun Jan 04, 2009 6:48 am
KDE uses the Subversion, revision control system. You can checkout the relevant folders like so:
Code: Select all
svn co svn://anonsvn.kde.org/home/kde/


For example Plasma ( located at trunk/KDE/kdebase/workspace/plasma )
Code: Select all
svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdebase/workspace/plasma


I do not know if KDevelop3 supports creating SVN patches, I use a standard text editor ( vi, kwrite or kate ) normally.

You can use the command 'svn diff' to view your changes, and this piped command to create your patch file
Code: Select all
svn diff > /path/to/patch/file


It would be recommended to send typo patches to the application appropriate mailing list unless it fixes a bug.
A good site to find typo's, etc. is the EBN ( English Breakfast Network ) located here Which has categories for each module, and different types of errors.

If you plan on doing this over a long period of time, it would be recommended to get and SVN account ( instructions here )

Last edited by bcooksley on Sun Jan 04, 2009 6:51 am, edited 1 time in total.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS

RE: Questions about patches...

Sun Jan 04, 2009 10:48 am
I recommend you to check out Techbase, hopefully you'll find many answers there.

Examples:
Getting Started
Send Patches
Get a SVN Account

Good luck! :)


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
xeriouxi
Registered Member
Posts
10
Karma
0
OS

RE: Questions about patches...

Sun Jan 04, 2009 8:33 pm
Thank you both very much for your helpful replies! :-)

Last edited by xeriouxi on Sun Jan 04, 2009 8:35 pm, edited 1 time in total.


xeriouxi... proud to be a member of the KDE forums since December 2008!


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kesang, Sogou [Bot], Yahoo [Bot]