Solved

integreated checkouts in SVN

Posted on 2013-10-28
2
383 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
intellij error 2 17
collection output issue 9 39
IP 10.0.1.2 / 255.0.0.0 61 57
Why use this lambda? 12 40
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

820 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