version-control

Maintaining stored procedures in source control

How do you guys maintain your stored procedures? I'd like to keep versions of them for a few different reasons. I also will be setting up cruisecontrol.net and nant this weekend to automate builds. I was thinking about coding something that would generate the create scripts for all tables/sprocs/udf/xml schemas in my development dat...

SVN: Ignore some directories recursively

I don't want any directory named build or dist to go into my SVN no matter how deep in the tree it is. Is this possible? In git I just put build dist in my .gitignore at the root and it recursively ignores. How do I do this with svn? Please don't tell me to do a propset on every parent dir... ...

sourcecontrol - pulling in only specific revisions

I am familiar with SVN and TFS for source control. One issue which I usually encounter is the same file is modified for different bugs (say bugP is fixed with revision/changeset (N), bugQ is fixed with revision(N+1) and bugR is fixed in revision/changeset(N+2) Each revision/changeset work on different part of the same file and there is ...

Secure version control

I would like to have your opinion about the subject "version control", but focusing on security. Some common features: allowing to access to source code using clients only (no way to access the source code on the server directly) granting permission to access only the source code which I am allowed to modify (i.e.: a developer should...

bzr pull vs bzr merge

I'm using bzr for a very simple task: getting the development version of GNU Emacs. After the initial bzr branch, I'd like to keep my local version up to date. I read about the documentation on bzr pull and bzr merge, but couldn't make sense out of it. I tried bzr merge for a few days, and found that bzr merge often resulted in unresolva...

Revision control system with multiple similar projects (one customized for each customer of a same product)

I have multiple SW projects from different customers with which I am implementing git version control system and I would like to know what is the best way to do it. The projects are similar and most often derived from existing ones but unique for each customer. Would I create a repo for each customer or would I create new branches inste...

Which version control package do you suggest for this purpose

We have super computers that researchers/scientists run simulations and tests on. We would like them to be able to easily check their code and results into a version control system. The first thing that came to mind was Subversion, but I have heard of others such as Bazzar, Mercurial and Git. Which would you recommend, based on the fol...

Emacs VCS interface commits only one file

When I commit changes with Emacs' built-in VCS interface (I use it with Bazaar) it commits only one file - that's open in current buffer. So when I press C-c v v, enter message and C-c C-c, it does something like bzr commit -m "my message" file/open/in.buffer instead of bzr commit -m "my message" How to commit all changes with Emac...

Best practice for setting up Apache and SVN for multiple sites and users?

I've just started working for a new firm as an in-house web developer. Up until now they have been outsourcing development work of their websites and decided to bring them in-house, hence my employment. I've only every worked on projects on my own and have never used version control. We've just hired another web developer to work along...

Should I commit cosmetic changes?

There are minor coding style changes that I often want to commit to the source control, but now the change log is full of those changes that do not affect code functionality. What should I do next time I have to fix minor things like: Remove and sort usings (in .NET, imports in python, includes in c++) Correct indentation, spacing and...

Should I use one SVN repository for each website or create sub directorys for each site within a single repository?

I'm currently in the process of setting up SVN on our local development web server and want to know if I should create a repository for each website on the server or a single repository that contains sub-directories for each site? Thanks for your help. ...

VCScommand for VIM

I am trying to use HG (Mercurial) with the Vim VCScommand plugin, but am running into a problem "Too many matching VCS: git HG". I removed the vcsgit.vim and the HG binding seemed to work. I thought VCScommand used the folder to determine, which VCS one was using. I guess this is a flawed assumption. ...

Versioning SQL Server DDL code

I'd like to have all DB DDL code under CVS. We are using Subversion for our .NET code. But all Database code remains still unversioned. All we know how important DB logic can be. I've googled but I've found only few (expensive tools) I believe there exist other (cheaper) solution(s) I'm wonder your approach. How do you implemente...

Delete file with all history from svn repository

Is there any way to delete file from svn repository including all its history? This issue emerges when I want to get rid of large binary file residing in repo. I know only one approach that might help in this situation: Dump all repo with the help of svnadmin utility. Filter dumped file with grep. Grep should use filename and write i...

git - How to undo a "git repack -ad"?

I have a git repository that i have packed with git repack -a -d, this repacked all the objects into one big file. This saves space. However I want to undo this, and turn that one big pack file into all the little object files. The reason I want to do this is to backup the git repository to a remote server. I did a backup (before repack...

Checking-in JAR files (libraries) into Version Control tool - Is it a good practice?

I'm developing a web application in Java and I'm using several third party JAR files in my lib folder. I also have Subversion as my version control tool. My question is, while checking in my project files, should I check-in the JAR files also or is it not needed to version the JAR files as I'm not modifying them anyway? ...

How do I commit two changes to the same file separately in Tortoise SVN?

Consider a situation: I've made multiple changes to one versioned file and want to commit the changes. Now I realise that they'd better be committed as two separate commits - so that some changes belong to one changeset and others - to another. How can I do that most efficiently? ...

Project files into RCS or not?

In our company we have a discussion whether to put project files into our RCS. What do you think? Consider an Eclipse project file for a C project that contain source and make files and other things. Would you put it into RCS? ...

How can I integrate svn with the Visual studio 2008 ?

How can I integrate svn with the Visual studio 2008 ? which is the better svn plugin/client for the visual studio ? ...

Procedures before checking in to source control?

I am starting to get a reputation at work as the "guy who breaks the builds". The problem is not that I am writing dodgy code, but when it comes to checking my fixes back into source control, it all goes wrong. I am regularly doing stupid things like : forgetting to add new files accidentally checking in code for a half fixed bug al...