Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can a SVN repository become corrupt?

A few times already, I got into situations where one of my SVN repository got corrupt and we could do anything with some versions or branches of the project without really knowing what we did. So I'm asking what can cause a repository to become corrupt?


It seems that incompatibilities between clients may cause problems, more specifically with character sets.

like image 313
Loki Avatar asked Dec 03 '08 01:12

Loki


People also ask

What is the purpose of an SVN Subversion repository?

SVN stands for Subversion. So, SVN and Subversion are the same. SVN is used to manage and track changes to code and assets across projects.

How does SVN repository work?

A Subversion repository — abbreviated SVN repository — is a database filled with your code, files, and other project assets. A SVN repository maintains a complete history of every change ever made.

How can I tell if SVN is running?

SVN Installation To check whether it is installed or not use following command. If Subversion client is not installed, then command will report error, otherwise it will display the version of the installed software. If you are using RPM-based GNU/Linux, then use yum command for installation.


2 Answers

There are basically three distinct cases:

  1. Faulty hardware (memory, fs corruption, etc.)
  2. User's with login access to the server can corrupt repository files.
  3. Bugs in Subversion.

Faulty hardware is usually the most difficult to spot, except in the most obvious cases. Case 2 is preventable by limiting login access to the server. Everything else is a bug in Subversion. (This includes compatibility issues between client and the server.) You should never be able to corrupt the repository just by using a Subversion client (not even when there is a bug in the client, IMO).

like image 192
JesperE Avatar answered Oct 13 '22 01:10

JesperE


Potential filesystem corruption or someone mucking around with the internal svn directories?

like image 39
grepsedawk Avatar answered Oct 12 '22 23:10

grepsedawk