Questions tagged [svn]

Use this tag for questions about SVN (Subversion), a centralized open-source revision control system distributed under the Apache License.

Apache Subversion

Apache Subversion (SVN) is a centralized version control system, available as free software under the .

When Subversion was first conceived in 2000, the design goal was to fix CVS. Since 2009, Subversion has been an Apache project.
See its own SVN repo in svn.apache.org or its mirror on GitHub.

Subversion can be used from the command line, but also has clients for , and . A popular client, which integrates into Windows-Explorer, is TortoiseSVN. A list of SVN clients with comparison can be found here.

References

The Subversion book is an excellent reference source, cite it in your SVN answers! Please use links to the latest stable release of the book (not to the nightly builds to avoid broken links).

Frequently-asked questions

If you are new to Apache Subversion or in general please take some time to read the SVNBook. The must-read articles are:

26477 questions
1549
votes
33 answers

How do I migrate an SVN repository with history to a new Git repository?

I read the Git manual, FAQ, Git - SVN crash course, etc. and they all explain this and that, but nowhere can you find a simple instruction like: SVN repository in: svn://myserver/path/to/svn/repos Git repository in:…
Milan Babuškov
  • 55,232
  • 47
  • 119
  • 176
1201
votes
16 answers

What do "branch", "tag" and "trunk" mean in Subversion repositories?

I've seen these words a lot around Subversion (and I guess general repository) discussions. I have been using SVN for my projects for the last few years, but I've never grasped the complete concept of these directories. What do they mean?
grapefrukt
  • 26,815
  • 4
  • 46
  • 71
1074
votes
11 answers

How to have git log show filenames like svn log -v

SVN's log has a "-v" mode that outputs filenames of files changed in each commit, like so: jes5199$ svn log -v ------------------------------------------------------------------------ r1 | jes5199 | 2007-01-03 14:39:41 -0800 (Wed, 03 Jan 2007) | 1…
jes5199
  • 16,375
  • 11
  • 35
  • 40
772
votes
23 answers

How do I ignore a directory with SVN?

I just started using SVN, and I have a cache directory that I don't need under source control. How can I ignore the whole directory/folder with SVN? I am using Versions and TextMate on OS X and commandline.
Gilean
  • 14,428
  • 10
  • 43
  • 52
680
votes
18 answers

How do I ignore files in Subversion?

How do I ignore files in Subversion? Also, how do I find files which are not under version control?
andyuk
  • 34,840
  • 15
  • 49
  • 52
638
votes
10 answers

How do I create a branch?

How do I create a branch in SVN?
sparkes
  • 18,823
  • 5
  • 36
  • 45
636
votes
32 answers

What are the pros and cons of the SVN plugins for Eclipse, Subclipse and Subversive?

SVN in Eclipse is spread into two camps. The SVN people have developed a plugin called Subclipse. The Eclipse people have a plugin called Subversive. Broadly speaking they both do the same things. What are the advantages and disadvantages of each?
rjmunro
  • 24,825
  • 18
  • 102
  • 130
587
votes
48 answers

Working copy XXX locked and cleanup failed in SVN

I get this error when I do an svn update: Working copy XXXXXXXX locked Please execute "Cleanup" command When I run cleanup, I get Cleanup failed to process the following paths: XXXXXXXX How do I get out of this loop?
Dan
  • 27,627
  • 40
  • 142
  • 201
567
votes
10 answers

How to edit log message already committed in Subversion?

Is there a way to edit the log message of a certain revision in Subversion? I accidentally wrote the wrong filename in my commit message which could be confusing later. I've seen How do I edit an incorrect commit message in Git?, but the solution to…
Paige Ruten
  • 157,734
  • 36
  • 172
  • 191
502
votes
14 answers

How do I return to an older version of our code in Subversion?

I'm working on a project with a friend and I want to return to an older version of our code and set it to be the current. How do I do it? I'm using "anksvn" on vs08. I have the version that I want on my PC, but the commit is failing; The message…
Chen Kinnrot
  • 19,385
  • 15
  • 74
  • 132
470
votes
31 answers

TortoiseSVN icons not showing up under Windows 7

I can't seem to get the icons to display under Windows 7 and I really miss this from Windows XP. How can it be fixed?
Lodle
  • 28,027
  • 19
  • 59
  • 89
405
votes
7 answers

How and/or why is merging in Git better than in SVN?

I've heard in a few places that one of the main reasons why distributed version control systems shine, is much better merging than in traditional tools like SVN. Is this actually due to inherent differences in how the two systems work, or do…
Mr. Boy
  • 52,885
  • 84
  • 282
  • 517
393
votes
30 answers

Why is Git better than Subversion?

I've been using Subversion for a few years and after using SourceSafe, I just love Subversion. Combined with TortoiseSVN, I can't really imagine how it could be any better. Yet there's a growing number of developers claiming that Subversion has…
Ben Mills
  • 24,294
  • 13
  • 37
  • 37
390
votes
17 answers

Pushing an existing Git repository to SVN

I've been doing all my work in Git and pushing to GitHub. I've been very happy with both the software and the site, and I have no wish to change my working practices at this point. My PhD adviser is asking all students to keep their work in an SVN…
cflewis
  • 7,000
  • 6
  • 26
  • 36
371
votes
10 answers

How to checkout a specific Subversion revision from the command line?

I want to checkout a specific revision of a folder in Subversion using the command line. I don't see an option for specifying the revision number in TortoiseProc.exe, TortoiseProc.exe /command:checkout How do I get the revision I want? Is…
ranja
1
2 3
99 100