version-control

What strategy do you use to sync your code when working from home

At my work I currently have my development environment inside a Virtual Machine. When I need to do work from home I copy my VM and any databases I need onto a laptop drive sized external USB drive. After about 10 minutes of copying I put the drive in my pocket and head home, copy back the VM and databases onto my personal computer and I'...

how do I undo a checkin in bitkeeper that isn't part of a changeset?

I have a file in a project that is in a bitkeeper repository. I checked in a file but I haven't committed the change to create a changeset. How can I undo the checkin? If I had a changeset I could undo the commit with: bk undo -r<rev> But in this case I can't commit and undo the changeset because I have other checked-in files that ...

How do I revert a big change in CVS?

One of my colleagues has totally messed up the contents of a directory in our main CVS repository. I need to just revert the whole module to the state it was in at the end of last year. What's the CVS command to do this please? He has added and removed hundreds of files, so a simple "copy over files from old checkout and commit" isn't...

Best practices for development with multiple machines and version control

I'm just getting into the practice of version control (I'd like to use Eclipse and SVN), and I'm not sure the best setup for my scenario. I'm currently a lone developer and I have two computers (a work desktop and a home office laptop) that I like to use for development (mainly web-based stuff). I have access to a Linux-based and a Wind...

Version control for version control?

I was overseeing branching and merging throughout the last release at my company, and a number of times had to modify our Subversion pre-commit hooks to enforce different requirements on check-in comments and such. I was a bit nervous every time I was editing those files, because (a) they're part of a live production system, albeit only ...

What are some tips to make my project compile on a fresh checkout every time?

More times than I'd like to admit I've had people new to a project do a checkout only to find they are missing various resources, dll's, settings. I'd like to get in the proper habit of having my projects compilation be smooth as can be from a fresh checkout. What are some tips or suggestions on how to structure my projects so they do...

What's the best Web interface for Git repositories?

I've been using Git for a bit now (hosting my own) and would love to have something like GitHub that I could setup for my own repos. I've seen GitWeb, but I just don't like using it all that much. Is there anything for Git that's as slick as Warehouse for SVN? ...

Pushing from subversion to web server

Long ago I tried to sort out my system between local, web server and subversion. I got some good explanation on this question. Unfortunately I hit a road block on the whole pushing from SVN to a web server part and never revisited. All of my projects are solo, so I'm the only one developing them and often I'm the only user. So I've b...

Is asset management a superset of source control

Do you take the entire asset management into consideration when planning your source control solution. For instance: images, external links, content, specs and data? I know there enough to wrestle with in getting source control to work effectively, but I often see okay source management, but manual manipulation of the other related asse...

ClearCase: How to find elements that do NOT have a particular label

I'm looking for a ClearCase command that will list all the elements that are visible in my current view, but do NOT have a particular label applied to them. Say for example, most of the elements that are visible in my view have *LABEL_X* applied to them. I want a list of those elements that do not have *LABEL_X*. I obviously need to u...

We use Subversion, but our client uses SourceSafe. What are my options?

We're about to start a new project, and our client's current application is .NET versioned in SourceSafe. However, we use Subversion internally. This will likely be a "one-time" delivery (complete application rewrite), so they could easily do a checkout from our repo, then export, and import into their SourceSafe repo. However, my fear i...

Why are check-in/commit comments a required field in some source control systems?

In Perforce (atleast the GUI) a check-in/commit comment is required. (I don't believe they are required in Git or Subversion.) Most developers that work with me just fill it in with latest/updated/etc. I used to write meaningful descriptions, but at about 20 comments a day with stuff like 'replace an image.' 'Changed spelling of 'franhci...

How do you CM an application with managed content

We have a web application which contains a bunch of content that the system operator can change (e.g. news and events). Occasionally we publish new versions of the software. The software is being tagged and stored in subversion. However, I'm a bit torn on how to best version control the content that may be changed independently. What...

Restoring Team Foundation Server

Hi Guys, We are thinking of moving from Subversion to Team Foundation Server for our source control requirements. The reasoning behind this being that our project teams are getting bigger and management feel more comfortable using a M'soft product rather than an open sourced solution (I know - I've tried to argue the foolishness of thi...

Is "Pragmatic Version Control Using Git by Travis Swicegood" worth buying? Or should I just stick with online docs?

Is "Pragmatic Version Control Using Git by Travis Swicegood" worth buying? Or should I just stick with online docs? I have basic level of Git -- using Git on my own without any branching or merging, or any kind of team use yet. Hoping to learn Git properly on managing branches and distributed team development with Git. ...

Revision control locking: Is the jury still out?

When I'm online it seems that everyone has agreed that using the exclusive locking workflow in source control is a Bad Thing. All the new revision control systems I see appear to be built for edit and merge workflows, and many don't even support exclusive locks at all. However, everyone I work with is of the opinion that exclusive locks...

Convincing a large company to use free software?

I'm currently a developer at my first job right out of college. I work for a large company, and the trend I notice with them is that they tend to go with more expensive, closed source software about 99% of the time, while there are perfectly good open source alternatives that are available, most of which are vastly superior to their clo...

How do I revert a file in TFS

On occasion, I'll end up checking in a file to our TFS db that I didn't intend to. Reverting to the prior version is quite tedious with my current approach. If there a fast way to revert a file to a prior version in TFS? I'm open to command line, powertool, or UI approaches. ...

To check in, or not check in, the entire Eclipse project?

I'm soon going to check in the very first commit of a new Java project. I work with Eclipse Ganymede and a bunch of plug ins are making things a little bit easier. Previously I've been part of projects where the entire Eclipse project was checked in. It's quite convenient to get the project settings after a check out. However this appro...

Can you specify which svn branches with git svn?

I think my question is somewhat similar to CaptainPicard's but dissimilar enough that I feel compelled to ask so here goes. I have an old SVN repository with around 7500 revisions and part of those 7500 revisions are some pretty large .fla files. And these .fla files exist in a number of the branches which have been created. As a result...