Fedora Linux Support Community & Resources Center
  #1  
Old 1st April 2010, 04:22 PM
antjoh Offline
Registered User
 
Join Date: Mar 2010
Posts: 13
linuxsafari
A question about revision control.

I consider myself to be a beginner when it comes to revision control so bare with me if these questions and thoughts sounds silly.

What I am trying to figure out is how to handle patching in a project using subversion. Let me explain it like this:

Say that I have a project in trunk that looks like this:

Code:
MyProjektDir
    |
    |
    ---- DirOne
    |        |
    |        |
    |        ---- FileOne.php
    |        |
    |        ---- FileTwo.php
    |
    ---- DirTwo
    |        |
    |        |
    |        ---- FileThree.php
    |
    ---- FileFour.txt
    |
    |
    ---- FileFive.php
I have made a tag on the whole project and called it "Release 1.0".
Now I realize that I need to make an adjustment to FileTwo.php and FileFive.php to fix a bug.

Now, in order to not have to extract the whole project to fix the installation, I would like to only check out the two files that I have made changes to. Basically I want to create a "patch" containing FileTwo.php and FileFive.php.

Then eventually, when further changes have been made to the project I will tag the whole thing and call it "Release 2", where the "patch files" of course will be included.

So, I guess my question is: How do you handle these situations? Is it possible to tag only a part of a project and call it eg "patch 1" so that I can easily find the two files that I need?

It is my understanding that this is not possible to do in subversion, so how should I handle this?

I have read that in subversion "every revision is a tag" which leads me to believe that I must always tag the whole project. Are there other revision control software available that handle these types of situations better, or am I just simply handling this the wrong way?

Any advice is much appreciated!
Reply With Quote
  #2  
Old 16th April 2010, 06:54 PM
BandC's Avatar
BandC Offline
Registered User
 
Join Date: Nov 2004
Posts: 1,105
windows_xp_2003firefox
Re: A question about revision control.

Read the release branches section in:

http://svnbook.red-bean.com/en/1.5/s...npatterns.html

Yes, you need to tag the whole project but you should be able figure out the difference between say 1.0.1 and 1.0.0 by issuing an svn command and just copy over those files for your patch.
Reply With Quote
Reply

Tags
control, question, revision

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
control panel question boarderline Using Fedora 0 18th February 2010 07:45 PM
FC4 - Volume Control Question (Audigy SB Live) rwhite7890 Using Fedora 0 23rd June 2005 04:34 AM


Current GMT-time: 13:01 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat