version-control

Good tool for drawing SCM code branch diagrams

Does anyone know a good tool for drawing SCM codeline diagrams? Currently we tend to do this using anything at hand e.g. PowerPoint, Visio, Paint Shop Pro, etc. It's a pity Visio doesn't include a standard stencil for this type of diagram. We use Perforce which includes tools for producing branching diagrams, but really suited to single...

Can I add custom version strings to a .net DLL?

I can add custom version strings to a C++ DLL in Visual Studio by editing the .rc file by hand. For example, if I add to the VersionInfo section of the .rc file VALUE "BuildDate", "2008/09/19 15:42:52" Then that date is visible in the file explorer, in the DLL's properties, under the Version tab. Can I do the same for a C# DLL? Not...

Checkout one file from subversion

"It is not possible to check out a single file. The finest level of checkouts you can do is directory level." Any ideas on how to get around this issue when using Subversion? We have this folder in subversion where we keep all our images.I just want to check out one file(image) from that.This folder is really big and has ton of other s...

Invalid file descriptor problem with Git on Windows

I've been using Git on Linux for about a year, and everything works fine. Since recently, a colleague has joined development and he's using Windows. Everything works fine there as well, but sometimes when he tries to push changes to a remote repository (bare) on Linux server it bails out with 'Invalid file descriptor' message. I update ...

How can I get a summary of my cvs conflicts when doing a cvs update on the command line?

Is there an easy way to get a conflict summary after running a cvs update? I work on a large project and after doing some work I need to do an update. The list of changes coming back from the cvs update command is several pages long and I'd like to see only the list of conflicts (starts with 'C') repeated at the end of the cvs update...

How do you include/exclude a certain type of files under Subversion?

I'm getting confused with the include/exclude jargon and my actual SVN client doesn't seem to have (or I've been unable to find it easily) a simple option to add or remove a certain type of files for version control. Let's say for example I've added the entire Visual Studio folder, with its solutions, projects, debug files, et cétera, bu...

Do you leave historical code commented out in classes that you update?

When you need to obsolete a section of code (say either the business rules changed, or the old system has been reworked to use a new framework or something) do you delete it from the file or do you comment it out and then put in the new functionality? If you comment it out, do you leave a note stating why it was removed and what it was ...

Does Git work in Windows?

I work on Linux all the time and I'm clueless about Windows not even having one to try it, is Git nowadays working on Windows? or am I making problems for my Windows-pals by using it? ...

Learning how to use Subversion

This is probably a really stupid newbie-sounding question to you developer type people, but I'm at a loss :( I've been trying to learn how to use Subversion for keeping the history of my code, but I'm finding it pretty confusing. I read the 'book' that comes with Subversion, but I didn't find it all that helpful. I'm using Windows, and I...

Source Code Control for Consultants?

Can anyone recommend a good Source Code control (SCC) that works for the mostly disconnected consultant? I'd prefer something that allows one to save into a local repository and then once connected 'syncs' to the server however I've never seen such a feature. Suggestions? [Windows solution is preferred that integrates with standard IDEs ...

Using mercurial, what's the easiest way to commit and push a single file while leaving other modifications alone?

I'm relatively new to Mercurial and my team is trying it out right now as a replacement for Subversion. How can I commit and push a single file out to another repository while leaving other modifications in my working directory uncommitted (or at least not pushed to the other repository)? This happens for us with database migrations....

What should I know about Git before I start using it?

I have used "traditional" version control systems to maintain source code repositories on past projects. I am starting a new project with a distributed team and I can see advantages to using a distributed system. Given that I understand SourceSafe, CVS, and Subversion; what suggestions do you have for a Git newbie? ...

Is every DDL SQL command reversible? [database version control]

I want to setup a mechanism for tracking DB schema changes, such the one described in this answer: For every change you make to the database, you write a new migration. Migrations typically have two methods: an "up" method in which the changes are applied and a "down" method in which the changes are undone. A single comma...

Can you keep Visual Studio source control binding info out of .sln and .csproj files?

My Visual Studio 2005 is storing the info about which projects and solutions go with which source control repositories in the .sln and .csproj files. Is it possible to make it store that binding information in some external file instead? The reason I wish the info were stored outside the solution/project files is to facilitate experimen...

Should I store all projects in one repository or mulitiple?

I am currently using TortoiseSVN to manage a couple of the projects that I have on the go at the moment. When I first moved everything into source control I wasn't really sure how everything should be laid out so I ended up putting each project into its own repository. I was wondering would it be a good idea for me just to move them a...

Would it make sense to use version control if I'm the only developer?

For example, if I was doing a project at home, does it make sense to use version control in the event that I want to revert or whatever, or does the shadow copy feature of Vista (we'll assume I'm using Vista) accomplish the same thing? ...

Integrated Version Control for Visual Studio

What version control systems have you used to manage projects developed with Visual Studio (2005)? What would you recommend and Why? What limitations have you found with your top rated version control system? ...

Best way to do Version Control for MS Excel

What version control systems have you used with MS Excel (2003/2007)? What would you recommend and Why? What limitations have you found with your top rated version control system? To put this in perspective, here are a couple of use cases: 1. version control for VBA modules 2. more than one person is working on a Excel spreadsheet and ...

How do you treat the deployment of configuration files on different systems in Subversion?

Subversion is a great way to update our web applications on our servers. With a simple svn update all changed files get... well, changed. Except for the omnipresent configuration files such as config.php which hold the database access configuration, server paths etc. And are therefore different on my local development system and the rem...

Asp.net hosting provider with build capabilities and source control

Can you suggest an asp.net 3.5 hosting provider with continuous integration (cctray – nant builds) and source control facilities (svn)? My requirement would be something like this: I checkin to a svn branch (say trunk) on the hosting provider space. CruiseControl.NET on the server fires off a build. I see success/failure on my cct...