473,411 Members | 2,080 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

How to work for web.config with Subversion?

Hi,

We would like to have a file that users will have on their machine
(web.config) that should be different than the master copy under source
control. Basically, that file specifies which database to connect to,
and users want to be able to connect to other databases. However, in
the "master" copy, we need to connect to a specific database every time.

I thought that using "svn:ignore" would do the trick, but it only works
for files. Also, in theory, that would make it difficult to actually
change the file if we wanted to.

Goals:
------
- Be able to simply get the source files and be able to run the system.
- Not prone to user error

Cheers,
Samnang
Jan 9 '08 #1
1 2380
RedSon
5,000 Expert 4TB
Hi,

We would like to have a file that users will have on their machine
(web.config) that should be different than the master copy under source
control. Basically, that file specifies which database to connect to,
and users want to be able to connect to other databases. However, in
the "master" copy, we need to connect to a specific database every time.

I thought that using "svn:ignore" would do the trick, but it only works
for files. Also, in theory, that would make it difficult to actually
change the file if we wanted to.

Goals:
------
- Be able to simply get the source files and be able to run the system.
- Not prone to user error

Cheers,
Samnang
svn:ignore only works for files that are not already being versioned. Just tell you users to not commit changes to their local web.config copy, then each user can have a different web.config. It doesn't seem that difficult. If you don't want people to be able to touch the master web.config you can try locking it but since others can force open the lock, you can protect it using normal apache permissions.
Jan 10 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Reimar Bauer | last post by:
Dear all is there already a method available to use subversion from PHP? I would like to use subversion to store different versions of our formdata. regards Reimar
0
by: Eric Mathew Hopper | last post by:
I have a patch that allows pydoc to deal with Subversion (http://www.subversion.tigris.org) style version strings. Subversion does not do '$Revsion: num$' style tags. The closest it will get is...
5
by: Tom Locke | last post by:
Hi, Anyone know of a good hosting company that offers both server-side Python and a subversion repository? I know of one: www.textdrive.com - they're a bit pricey, but I s'pose you gets what...
3
by: Dexter | last post by:
Hello all, i'm developing a web project with Visual Studio.net, and now, i need that many peoples work in a unique web project. I have a web server with all source codes running with IIS 5.0, and...
3
by: patkinson | last post by:
Hello, I am one of those guys trying with no chance to get a working copy of TRAC for python 2.5 http://trac.edgewall.org/ is a superb Project managment tool with a wiki, control version...
3
by: Jim Tittsler | last post by:
Is there a standard recipe for getting the subversion revision number into my Python-based application each time I package it up with distutils? (Not just the package name, but also a string that...
0
by: Samnang | last post by:
Hi, We would like to have a file that users will have on their machine (web.config) that should be different than the master copy under source control. Basically, that file specifies which...
3
by: Mike B | last post by:
I'm trying to get Subversion 'hook scripts' working on an Ubuntu box and the following fails. from svn import fs, repos, core, delta As far as I can tell there are two Python Subversion...
9
by: =?windows-1252?Q?=22=C1lvaro_G=2E_Vicario=22?= | last post by:
I’ve been using Subversion for a while to maintain the PHP web apps and sites I develop in my Windows box. But when I want to publish a new release I update the live site manually and I want to...
0
nathj
by: nathj | last post by:
Hi, While I know this is not strictly a Java issue I thought this would be the place to post as I know a lot of Java developers use Eclipse and most likely use SVN and Subclipse. First up...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.