Solved

integreated checkouts in SVN

Posted on 2013-10-28
2
370 Views
Last Modified: 2013-11-12
Greetings.
I have a SVN repo with four folders:
/BuildCM
/Trunk
/Branch
/Tag

in my BuildCM folder is a database.php that holds my database parameters.  There are four of them.

DatabaseSTG.php
DatabaseTST.php
DatabasePRD.php

Depending on the environment I need that file to be checked out and sent to the application in the /root/config folder.

The root/config/database.php is the file for my dev box.  WHen I do a commit, I want the hook to perform an update to the staging environment, then I need DatabaseSTG.php to be pulled out of my SVN CMBuild and sent to /root/config/ folder.

If I do a svn co, will that override the whole folder?  I just want the one file to go into that folder.

What can I do?
Thanks.
0
Comment
Question by:Evan Cutler
2 Comments
 
LVL 13

Accepted Solution

by:
Daniel Helgenberger earned 500 total points
ID: 39607286
I hope I get this correct. I do something similar with symbolic links: maybe this will work for you as well? Eg,
1 Check out the repo to location other than /root/config
2 link the correct file to /root/config/database.php; depending on your envroment
3 run your program and read/write the file
4 do a commit

This can be scripted of course.
0
 
LVL 9

Author Closing Comment

by:Evan Cutler
ID: 39643740
Thanks much.
if I come up with anything further, I'll re-post.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Java Loop 6 49
linux installs 6 49
nagios 4 php error after installation 6 77
simplest php form 3 61
This is about my first experience with programming Arduino.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now