Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Subversion: How do you avoid forgetting to check stuff in?

Working on three different computers at two different locations, on projects that are in subversion, I once in a while forget to check in stuff at one location, so that I cannot work on the latest code, when I want to continue working on the project at another location.

I am sure other have had similar problems.

What are some things I can do to avoid this issue? Tools that help? Notifications I can set up?

I use Visual Studio 2008 and TortoiseSVN on Windows7 PCs.

like image 349
Kjensen Avatar asked Aug 25 '09 02:08

Kjensen


3 Answers

Use a tool like VisualSVN to show which files are modified in the Solution Explorer, so that you don't forget to commit them:

VisualSVN status icons in Solution Explorer

like image 146
X-Cubed Avatar answered Oct 14 '22 06:10

X-Cubed


A simple solution is to right-click at the top level of the project and then click "commit". Tortoise shows you the entire project, including "non-versioned" files.

This takes a little discipline when you setup your source tree. For example, if you mix binary output files with source code, it makes it more difficult. Also make sure you don't have any directories ignored that contain source code.

like image 38
BenB Avatar answered Oct 14 '22 06:10

BenB


Daily builds.
A batch file (or equivalent) that checks out into a new directory and does a build (and in an ideal world runs unit tests) - if it doesn't build then you missed somethign.

like image 32
Martin Beckett Avatar answered Oct 14 '22 08:10

Martin Beckett