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:

26703 questions
162
votes
6 answers

How do I view an older version of an SVN file?

I have an SVN file which is now missing some logic and so I need to go back about 40 revisions to the time when it had the logic I need. Other than trying to view a diff of the file in the command line (very hard to read), is there any way I could…
Xeoncross
  • 55,620
  • 80
  • 262
  • 364
160
votes
18 answers

SVN: Is there a way to mark a file as "do not commit"?

With TortoiseSVN, I can move a file into the ignore-on-commit changelist, so that when I commit a whole tree, changes to that file do not get committed. Is there a way to do something like that using the svn command-line tool? EDIT: Thanks for the…
Ferruccio
  • 98,941
  • 38
  • 226
  • 299
160
votes
11 answers

What does the red exclamation point icon in Eclipse mean?

What does the red exclamation point icon in Eclipse mean? There are lots of different search results on the Internet about "red exclamation point icons" and "red exclamation mark decorators" and "red bang icons," no doubt because lots of plugins and…
Pops
  • 30,199
  • 37
  • 136
  • 151
160
votes
8 answers

svn: replace trunk with branch

What is the best way to make one of the branches of a subversion repository the new trunk? There has been a major rewrite for the entire system: things have been moved around, rewritten, replaces, removed, renamed etc. The rewritten code has been…
Jacco
  • 23,534
  • 17
  • 88
  • 105
158
votes
7 answers

How do I move a single folder from one Subversion repository to another repository?

I have a "docs" folder in a Subversion repository named "project". I've come to the conclusion that it should really be kept under a separate Subversion repository named "project_docs". I'd like to move the "docs" folder (and all of its revisions)…
leftend
  • 1,934
  • 2
  • 16
  • 18
158
votes
14 answers

SVN Repository Search

Is there any good software that will allow me to search through my SVN respository for code snippets? I found 'FishEye' but the cost is 1,200 and well outside my budget.
John
  • 1,603
  • 2
  • 11
  • 3
158
votes
4 answers

How do I switch to another subversion branch in Intellij?

What is the concept of switching branches in IntelliJ? I must be either blind or an idiot... I would assume there'd be a "switch to copy" option or something like that, but there is none... EDIT for clarification: my prev IDE had a simple "switch to…
PeterP
  • 4,502
  • 7
  • 22
  • 21
153
votes
15 answers

Where is svn.exe in my machine?

I have Tortoise svn installed on my desktop. I want to perform some tasks using commandline svn.exe? But I am not able to find svn.exe on my machine. Do we have to install something else to get the svn.exe commands?
Amitabh
  • 59,111
  • 42
  • 110
  • 159
153
votes
12 answers

How can I delete all unversioned/ignored files/folders in my working copy?

If I have a working copy of a Subversion repository, is there a way to delete all unversioned or ignored files in that working copy with a single command or tool? Essentially, I'm looking for the SVN analogue to git clean. Either a command line or…
Nick Meyer
  • 39,212
  • 14
  • 67
  • 75
149
votes
6 answers

How do I browse an old revision of a Subversion repository through the web view?

I know how to browse my project's Subversion repository through its web front-end, but it seems that I can only browse the latest revision of the trunk. Is there a way to browse an older revision of the trunk through the web UI? I know how to do…
Ross Rogers
  • 23,523
  • 27
  • 108
  • 164
147
votes
7 answers

How to get svn remote repository URL?

I have an svn working copy on my local system. I want to get the remote repository URL. Is there some command for doing this?
mlzboy
  • 14,343
  • 23
  • 76
  • 97
147
votes
6 answers

How can I set the WiX installer version to the current build version?

I wrote an application and its WiX installer and put it under version control using subversion. When the WiX installer builds I want its version number to be the current build version of the application. How do I accomplish this? I used c# to code…
Draco
  • 16,156
  • 23
  • 77
  • 92
147
votes
14 answers

Intellij idea subversion checkout error: `Cannot run program "svn"`

I am using intellij idea 13.0. When I am trying to checkout from subversion I am getting error Cannot load supported formats: Cannot run program "svn": CreateProcess error=2, The system cannot find the file specified How do I fix this?
JULIIncognito
  • 1,875
  • 2
  • 15
  • 15
146
votes
4 answers

How do I create a new branch?

How do I create a new branch with my working copy using TortoiseSVN? I see the branch option, but I don't see a way to name it somehow.
the_drow
  • 18,571
  • 25
  • 126
  • 193
145
votes
12 answers

SVN command to delete all locally missing files

In SVN is there a command I can use to delete all locally missing files in a directory? Or failing that, some way of listing only those files that are missing (or, in the more general case, have status A, D, ?, etc.)
wheresrhys
  • 22,558
  • 19
  • 94
  • 162