version-control

Deploying CodeIgniter (or any PHP projects) to the live site?

What's the ideal way of deploying CodeIgniter projects (or any PHP projects for that matter) from your local machines to the live site? I've been using subversion for checking out and updating the code from live sites for quite some time now. But there are others who say that this practice is not good since you do not need the svn meta...

in-place import in other version control systems? dvcs?

I use subversion's in-place import (read for details) for configuration file version control in /etc and my home directory. It works well for me, but I've been seeing alot better/faster version control systems cropping up and want to convert. I tried mercurial, and it doesn't really support this feature of checking out a working copy o...

Good Practices for Web Development Project Management

I realize that the phrase "good practices" is a bit dubious and overused, but I think it applies to my question. I have some good web development experience, but I would like to hear what are some good basic practices when doing freelance work vis-à-vis project management. For example, I have the target domain, mydomain.com. Should I d...

Find deleted files in Mercurial repository history, quickly?

You can use hg grep, but it searches the contents of all files. What if I just want to search the file names of deleted files to recover one? I tried hg grep -I file-name-pattern pattern but this seems to return no results. ...

Transitioning from one source-control tool to another. Advice please?

Recently I was told, I have to migrate our Perforce repository to TrueChange (McCabe TrueChange). I had not heard of TrueChange up until that point. I have used cvs, subversion, vss and perforce so far. I am trying to find any words of wisdom in making that transition and what to expect from TrueChange. I loved working with Perforce and ...

Worth the headache to organize SQL files by application subject?

At my company, we save each database object (stored proc, view, etc) as an individual SQL file, and place them under source control that way. Up until now, we've had a very flat storage model in our versioned file structure: DatabaseProject Functions (all functions here; no further nesting) StoredProcedures (all stored procs in h...

[WCF] What files I need to check-in after adding a web service reference?

I have a (new) project and it has a web service reference. It has following structure: <Folder: project folder> <File: source file 1> <File: source file 2> <File: source file .> Folder: Web References Folder: MyService File: Reference.map File: Reference.cs File: MyService.xsd ...

Handling web.config differences across multiple machines when using version control.

I'm sure everyone has to deal with these situations, we check in our solution to source control and each dev machine will have its own resources for debugging, building and testing.. The most common being: Web server (IIS) Database (SQL) The web server is easy to handle, each dev machine will have its own proj.user file to specify d...

What's the best way to take my TFS source controlled project on the road and then bring it back?

So my desktop is my primary workstation for VS2008 that's supported on the backend by TFS. I'm hitting the road for a week and I'd like to take a project with me. I'd like to checkout the entire project, copy it to my external HD and then work off that. I know that when I try to open it on my laptop that won't be connected to the netw...

Converting a company from SVN to Hg?

We're a heavy user of SVN here. While the advantages of GIT over SVN made us want to change, the advantages of Hg over SVN mean it's now time to change and we need to start doing so very soon. I'm not so worried on the client side, but here are my questions. There are some excellent books on setting file metaproperties, properly organ...

Plastic SCM vs. SVN

I'm currently researching new source control options for a team of 10 developers. We do .net development in Visual Studio 2008. We currently use VSS for source control. We are looking for a centralized source control solution(non-distributed), with a nice Visual Studio plugin. My manager has recommended Plastic SCM and I've always hear...

Branching Patterns / Policies

I'm currently revamping the way our shop does version-control. We will be using a server centric version control solution. I would like to see how other people are branching, and doing it successfully, without all of the headaches I read about. What are some field tested branching patterns you have seen in a production environment tha...

Should I add a new SVN repository or a new folder ?

Have one application in SVN (on unfuddle.com). Want to add a new application (related to, but independent of the existing one). Today I have: repo1/root/app1 Should I add the new application in a new repository or in a new folder ? i.e. should I use option1: repo1/root/app1 repo1/root/app2 or option2: repo1/root/app1 ...

Source Control with Backup

I'm setting up Source Control for a one man software project. It's important that the source control is: Easy to set up on Linux (Debian) Easily backup-able A small set of files to be backed up An automatic backup function would be great Free What is my best option? ...

Does Visual Source Safe really lack renaming functionality?

I'm using Visual Source Safe at a new job and it hasn't been too bad... then I renamed a file. I clicked through the warning prompts not really paying attention realized that by renaming the file I lost all of my history. Is this really the case? I can't believe VSS doesn't support renaming. I refactor lots of code and not having a r...

How to check SiteCore's serialisation tree into TFS

We're using Sitecore and to share the content between developers we're serialising the content tree to the filesystem then checking this into source control. This worked fine in the last project that used SVN, but this new project is using TFS. Unfortunately TFS won't accept paths that have a dollar sign in them, ie \serialization\mas...

Should a .sln be committed to source control?

Is it a best practice to commit a .sln file to source control? When is it appropriate or inappropriate to do so? Update There were several good points made in the answers. Thanks for the responses! ...

Python package install using pip or easy_install from repos

The simplest way to deal with python package installations, so far, to me, has been to check out the source from the source control system and then add a symbolic link in the python dist-packages folder. Clearly since source control provides the complete control to downgrade, upgrade to any branch, tag, it works very well. Is there a w...

Copy source control history when I branch, then delete trunk, in TFS

I have a TFS project that ought to be a folder under another project, so I want to move the source control history (We don't use the other features of TFS for this project, so I don't care about the project site). I've branched the code into the new location, and I'm preparing to delete the original project. This SO question deals with ...

git branching practices

I am using Git for a Visual Studio solution. Here is the structure of the sol. myProject.Domain, myProject.Common, myProject.Core, webClientForCustomer1, webClientForCustomer2 As the names imply, webClient projects all depend on Domain, Common and Core projects. I create a new web client app for each customer and make UI customizations...