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
179
votes
17 answers

Best general SVN Ignore Pattern?

What is the best (or as good as possible) general SVN ignore pattern to use? There are a number of different IDE, editor, compiler, plug-in, platform, etc. specific files and some file types that "overlap" (i.e. desirable for some types projects…
176
votes
12 answers

Subclipse svn:ignore

I'm using subclipse for connecting to my SVN. There are some folders and files I would like to add to svn:ignore, but it's grayed out. Is there an easy way to get subclipse to ignore files and directories?
KevMo
  • 5,590
  • 13
  • 57
  • 70
175
votes
8 answers

Can you do a partial checkout with Subversion?

If I had 20 directories under trunk/ with lots of files in each and only needed 3 of those directories, would it be possible to do a Subversion checkout with only those 3 directories under trunk?
readonly
  • 343,444
  • 107
  • 203
  • 205
171
votes
4 answers

Undo svn add without reverting local edits

I accidentally ran svn add * and added a bunch of files that shouldn't be in the repository. I also have local edits in some files that I want to keep. Is there a simple way to just undo the svn add without reverting the local edits? The main…
jonderry
  • 23,013
  • 32
  • 104
  • 171
170
votes
4 answers

List files committed for a revision

How do I list the file names/paths that are committed, using a revision number?
Satish
  • 6,457
  • 8
  • 43
  • 63
170
votes
17 answers

examining history of deleted file

If I delete a file in Subversion, how can I look at it's history and contents? If I try to do svn cat or svn log on a nonexistent file, it complains that the file doesn't exist. Also, if I wanted to resurrect the file, should I just svn add it…
Benjamin Peterson
  • 19,297
  • 6
  • 32
  • 39
167
votes
11 answers

How to display a specific user's commits in svn log?

How to display a specific user's commits in svn? I didn't find any switches for that for svn log.
mimrock
  • 4,813
  • 8
  • 32
  • 35
167
votes
9 answers

Better way to revert to a previous SVN revision of a file?

I accidentally committed too many files to an SVN repository and changed some things I didn't mean to. (Sigh.) In order to revert them to their prior state, the best I could come up with was svn rm l3toks.dtx svn copy -r 854 svn+ssh://
Will Robertson
  • 62,540
  • 32
  • 99
  • 117
165
votes
5 answers

Does svn have a `revert-all` command?

If I want to throw away all of my changes, and return to the code that is on the repository, I do the following: $ rm -fr * $ svn up This is easy enough, but I'm wondering if there is a single command that will accomplish this, something like: $…
Eric Wilson
  • 57,719
  • 77
  • 200
  • 270
164
votes
3 answers

How do you branch and merge with TortoiseSVN?

How do you branch and merge with Apache Subversion using the TortoiseSVN client?
cmcculloh
  • 47,596
  • 40
  • 105
  • 130
164
votes
6 answers

Update Item to Revision vs Revert to Revision

I've started to use Subversion with TortoiseSVN. If I open up the log and right click on an old revision I see two options that sound like they roll back to an older version: "Update item to revision" and "Revert to this revision". I understand that…
Eric Anastas
  • 21,675
  • 38
  • 142
  • 236
163
votes
20 answers

Good Linux (Ubuntu) SVN client

Subversion has a superb client on Windows (Tortoise, of course). Everything I've tried on Linux just - well - sucks in comparison....
france
163
votes
11 answers

How to use SVN, Branch? Tag? Trunk?

I was googling around a little bit and couldn't find a good "beginners" guide to SVN, not in the meaning of "how do I use the commands" rather; How do I control my source code? What I'd like to clear up is the following topics: How often do you…
Filip Ekberg
  • 36,033
  • 20
  • 126
  • 183
163
votes
13 answers

rsync exclude according to .gitignore & .hgignore & svn:ignore like --filter=:C

Rsync includes a nifty option --cvs-exclude to “ignore files in the same way CVS does”, but CVS has been obsolete for years. Is there any way to make it also exclude files which would be ignored by modern version control systems (Git, Mercurial,…
Jesse Glick
  • 24,539
  • 10
  • 90
  • 112
162
votes
6 answers

Is it possible to have a Subversion repository as a Git submodule?

Is there a way to add a Subversion repository as a Git submodule in my Git repository? Something like: git-svn submodule add https://svn.foo.com/svn/proj --stdlayout svn-project Where https://svn.foo.com/svn/proj points to a Subversion…
davitenio
  • 2,361
  • 2
  • 22
  • 14