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
291
votes
9 answers

How to properly create an SVN tag from trunk?

I am creating my first project in Subversion. So far I have branches tags trunk I think I immediately need to make branches singular and start over. Update branches is the norm. I have been doing work in trunk and moving the contents to tags as…
ojblass
  • 21,146
  • 22
  • 83
  • 132
277
votes
12 answers

How to use TortoiseSVN via command line?

I use TortoiseSVN and want to use command line SVN options. I used the command: svn checkout [-N] [--ignore-externals] [-r rev] URL PATH and get the following error: 'svn' is not recognized as an internal or external command Is it because I need…
Night Walker
  • 20,638
  • 52
  • 151
  • 228
268
votes
13 answers

In Subversion can I be a user other than my login name?

I'd like to know how to get Subversion to change the name that my changes appear under. I'm just starting to use Subversion. I'm currently using it to version control code on an XP laptop where I'm always logged in under my wife's name. I'd like the…
markets
  • 9,344
  • 7
  • 34
  • 33
266
votes
29 answers

How do you remove Subversion control for a folder?

I have a folder, c:\websites\test, and it contains folders and files that were checked out from a repository that no longer exists. How do I get Subversion to stop tracking that folder and any of the subfolders and files? I know I could simply…
Brian Boatright
  • 36,294
  • 34
  • 81
  • 102
256
votes
31 answers

What should I do when 'svn cleanup' fails?

I have a lot of changes in a working folder, and something screwed up trying to do an update. Now when I issue an 'svn cleanup' I get: >svn cleanup . svn: In directory '.' svn: Error processing command 'modify-wcprop' in '.' svn: 'MemPoolTests.cpp'…
Rob Walker
  • 46,588
  • 15
  • 99
  • 136
255
votes
10 answers

Command-line svn for Windows?

Is there a command-line based version of svn for Windows? I know I can get TortoiseSVN, but that just doesn't work for me.
Pieter
  • 31,619
  • 76
  • 167
  • 242
251
votes
11 answers

How do I move a file (or folder) from one folder to another in TortoiseSVN?

I would like to move a file or folder from one place to another within the same repository without having to use Repo Browser to do it, and without creating two independent add/delete operations. Using Repo Browser works fine except that your code…
jeremcc
  • 8,633
  • 11
  • 45
  • 55
246
votes
9 answers

Which Eclipse files belong under version control?

Which Eclipse files is it appropriate to put under source control, aside from the sources obviously? In my project, specifically, I'm wondering about: .metadata/* project-dir/.project project-dir/.classpath project-dir/.settings/* If there…
sblundy
  • 60,628
  • 22
  • 121
  • 123
243
votes
29 answers

Subversion stuck due to "previous operation has not finished"?

If I try to update my subversion repo, it says I must run cleanup. If I run cleanup, it says a file is missing. (I deleted a MASSIVE directory of files that failed to commit this morning from my home pc, but then I commit the same set of files from…
rockstardev
  • 13,479
  • 39
  • 164
  • 296
242
votes
9 answers

What is trunk, branch and tag in Subversion?

Possible Duplicate: What do “branch”, “tag” and “trunk” really mean? What is a trunk, branch and tag in Subversion and what are the best practices to use them? What tools can I use for Subversion in Visual Studio 2008?
Hemanshu Bhojak
  • 16,972
  • 16
  • 49
  • 64
236
votes
7 answers

SVN Commit specific files

Is there any way to commit only a list of specific files (e.q. just one of the list of files that SVN wants to commit). I'm working on MAC OS X under Terminal, without any UI.
0100110010101
  • 6,469
  • 5
  • 33
  • 38
235
votes
19 answers

How can I get `find` to ignore .svn directories?

I often use the find command to search through source code, delete files, whatever. Annoyingly, because Subversion stores duplicates of each file in its .svn/text-base/ directories my simple searches end up getting lots of duplicate results. For…
John Kugelman
  • 349,597
  • 67
  • 533
  • 578
223
votes
25 answers

What causes the SVN Error "Not a working copy"?

Recently our Subversion (SVN) server was changed and we did a svn switch. Since the working copy had a huge amount of unversioned resources, the working copy got locked and we started switching folder by folder for all folders under SVN, which works…
Vijay Dev
  • 26,966
  • 21
  • 76
  • 96
222
votes
13 answers

How do you move a file?

I'm using TortoiseSVN against the SourceForge SVN repository. I'd like to move a file from one folder to another in order to maintain its revision history. Is this possible? If so, how do you do it? (My current strategy has been to copy the file…
Guy
  • 65,082
  • 97
  • 254
  • 325
220
votes
5 answers

Remove file from SVN repository without deleting local copy

How can I "delete" a file which is already in the SVN repository without deleting it from my file system? TortoiseSVN or command line instructions are welcome. The following works, but I am hoping for something nicer: Copy the file to some other…
srmark
  • 7,942
  • 13
  • 63
  • 74