logo       

Re: Newbie question: msg#00085

web.wiki.phpwiki.talk

Subject: Re: Newbie question

method 1:

# remark: always diff old to new
# but you want your changes from 1.2 back into cvs...:
diff -rbu phpwiki-cvs phpwiki-1.2 > phpwiki-1.2.patch

# now you can apply the patches blindly
cd phpwiki-cvs; patch -p1 < phpwiki-1.2.patch

method 2:
or better check the patch file in a editor which can do diff's, such as XEmacs or emacs:


C-x 2
M-x ediff-buffers

split the window, load the patch and file-wise both files.
and see what's different. you can also apply the diff's, but manually. that's preferred ,but needs more time.

russ schrieb:
I'm not actually a newbie, but I'm afeared this question is.

I've been following and using PHPWiki for years; I spent a long time hacking up 1.2.* for personal use. I'm eagerly awaiting 1.4 for a few installations, and I'm sure some customization and tweaking will follow. This time, however, I want to do it right. I want to be able to upgrade as the product changes. I want to be able to isolate and save my changes. I want the option of submitting my work back to the project.

However, I'm not 100% sure how to go about it. I looked into the inner workings of diff and patch a bit months ago. Is that the place to start? Does anyone have a pointer to a good reference for someone who is not a necessarily a coding newbie but is a project newbie? How about my own code? Should I use source control for that? Any other best practices I should look into?

Sorry if this is ramantly off-topic (can't be worse than the administrivia reply-to thread :), but any pointers (reply-to just me is fine, too :) would be much appreciated.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise