Solved

integreated checkouts in SVN

Posted on 2013-10-28
2
396 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Advice on ESXi 5.1 Health / Storage 1 79
Java Inharitance subclass/child extends, reference variable from base/parent class 9 71
NFS v4 7 76
http response code 3 38
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

738 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