Solved

integreated checkouts in SVN

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

758 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

22 Experts available now in Live!

Get 1:1 Help Now