version-control

How do you track database changes in source control?

We use SQL Server 2000/2005 and Vault or SVN on most of our projects. I haven't found a decent solution for capturing database schema/proc changes in either source control system. Our current solution is quite cumbersome and difficult to enforce (script out the object you change and commit it to the database). We have a lot of ideas of...

Daily Build and SQL Server Changes

I am about to try and automate a daily build, which will involve database changes, code generation, and of course a build, commit, and later on a deployment. At the moment, each developer on the team includes their structure and data changes for the DB in two files respectively, e.g. 6.029_Brady_Data.sql. Each structure and data file i...

Subversion and using IIS for ASP.NET development

Hi, I'm a total newbie to SVN and haven't been able to find an answer for the following situation. I have an ASP .NET 2.0 web app that I am developing. I am using my local IIS as the development web server (i.e. not the Visual Studio web development server). My development environment is VS2005, Vista, IIS7, TortoiseSVN / AnkhSVN. Visu...

Does this sound like a good idea? ( svn / version control / webdev / deployment )

I've recently gotten charged with designing and implementing a source code version control, testing, and deployment scheme at the company I work. Personally I've worked with Subversion for a few years on my own projects. But I've never dealt with it at this big scale. Hence I thought I'd ask here if anyone has any comments or suggestion...

Why is "origin/HEAD" shown when running "git branch -r"?

When you run git branch -r why the blazes does it list origin/HEAD? For example, there's a remote repo on GitHub, say, with two branches: master and awesome-feature. If I do git clone to grab it and then go into my new directory and list the branches, I see this: $ git branch -r origin/HEAD origin/master origin/awesome-feature Or what...

Using git/mercurial on projects with continuous refactoring ?

I am trying to understand if I really have any case for using git/mercurial. The projects I work are java and c# projects, usually with 5-20 people working towards a common goal (the "release"). Most of the developers are professional developers who refactor code all of the time. So where the typical linux kernel has a large number of ...

Can I automatically increment the file build version when using Visual Studio?

I was just wondering how I could automatically increment build (and version?) of my files when using Visual Studio (2005). If I look up the properties of say C:\Windows\notepad.exe, the Version tab gives "File version: 5.1.2600.2180". I would like to get these cool numbers in the version of my dll's too, not version 1.0.0.0, which let'...

How can I fix my directory structure in Visual Sourcesafe?

I use Visual SourceSafe with Visual Studio. Every time I work on a project for a while, the directory structure on my harddisk gets messed up. The latest versions of the files are going to their own nested folder, so I end up with "C:\VS2005\Projects\MyProject\MyProject\MyProject\MyProject" What is causing this? ...

Development of a library in distributed version control system (bazaar)

I am relatively new to bazaar (primarily used cvs, then subversion, and at my current job we're using SourceUnsafe). My current development environment is structured like this: \dev (shared repository) \trunk \project1 (branch) \project2 (branch) \branches \proj1-bugfix123 (branch of \trunk...

How can I completely remove TFS Bindings

I have a solution that contains a good deal of projects, I would like to remove the source control bindings completely, how can I do this? Update: What I really want to do is move one solution and its projects from TFS 2005 -> 2008. Thats why I am removing the bindings, is there a better way to do this? ...

Maintain runtime settings across environments in version control?

We are investigating the Magento ecommerce platform and refining our deployment and version control strategy. Right now, we are looking for the best way to keep multiple environments in sync (e.g. QA/Development environments/Production) when it comes to settings that are adjusted in the admin interface (e.g. Adding products, system conf...

How do I get Time Lapse View in P4Win?

In the past, on Windows XP machines, I was able to install P4V (the stupid platform-independent Perforce visual client that Perforce tries to shove down your throats), then after that, install P4Win (the wonderful clean robust mature visual client that Perforce is stupidly trying to deprecate). If I did the installs in that order (and o...

Git On Windows Without Cygwin?

Are there any native Git implementations for Windows that do not require Cygwin? I've become a fan of the TortoiseSVN client, and would really like to see a similar Git client for Windows. Edit: I am also considering Mercurial, but would prefer to check out a few before I make a decision. ...

What is a good way to implement an agile database process, which is in synch with the code base, especially in regards to continuous integration?

The project I am working on were are trying to come up with a solution for having the database and code be agile and be able to be built and deployed together. Since the application is a combination of code plus the database schema, and database code tables, you can not truly have a full build of the application unless you have a databa...

Saving database data changes in commits (if not sqlite)

We have a Rails project that uses PostgreSQL-specific queries, so it's uncomfortable to use sqlite even in development mode. The problem is, I'd love to track schema changes in database and omit running migrations on request, and I'd also love to track db-data changes with git, so that I wouldn't need to dump the db and load it on my mac...

What are some options for a 'local' version control repository?

I'm a fan of SVN and I am comfortable setting up my own svn repository, but I'm wondering if there are better options than creating a separate repository. Basically I'm just looking for a way to keep track of or roll back changes before my code is reviewed and checked in to the main repository (SourceSafe). Note: I can't control which...

What is the easiest way to figure out who wrote/edited this line of code?

This obviously requires the source file to be under source control. I would ideally like a tool which works under the IDE (Eclipse, Visual Studio, etc) - but an external tool would be nice, too. Obviously, it is possible manually go through previous versions of the file, and compare the various versions, but I am looking for a way to be ...

source control when away from office

I sometimes code when i'm away from the office. I would like to continue to use the benifits of source control when not connected to the company network. My ideal system would allow me to checkin revisions to a repository on my laptop that would then sync with our main SVN repository when I connect to the company network. when syncing w...

Best practices, building trunk against trunk?

We have many projects that use a common base of shared components (dlls). Currently the development build for each project links against dlls built from the trunk of the components. (ie trunk builds use the dlls from other trunk builds) When we do a release build, we have a script that goes through the project files and replaces the tr...

PHP Source Control Server

I there a PHP based source control 'server' that is compatible with SVN clients? I'd like to host my SVN on my hosting servers, however the current host will not allow me to start any process or install any software ...