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
14
votes
5 answers

"Naive" svn merge from branch into trunk?

I am using TortoiseSVN for my C++ project, and am trying to "reintegrate a branch" back into the trunk. My case is simple enough so that for every file which has changed in the branch, I would like it to completely overwrite the matching file in the…
Danra
  • 9,546
  • 5
  • 59
  • 117
14
votes
1 answer

How to trigger build in Jenkins immediately after the code check-in

How do I trigger the build in Jenkins once the code is committed? Jenkins is installed and the build is can be triggered manually. Below are the SVN version details. TortoiseSVN 1.8.1, Build 24570 - 32 Bit , 2013/07/22 18:28:29 Subversion 1.8.1,…
user2077937
  • 251
  • 1
  • 3
  • 7
14
votes
5 answers

SVN frequently says file is locked by me in another working copy

I have an SVN repository (hosted on Dreamhost) with needs-lock set on binary files. It sometimes happen that, while committing files locked and modified by me, the commit fails with the error: Error: Commit failed (details follow): Error: File…
cmant
  • 453
  • 1
  • 5
  • 11
14
votes
7 answers

How to identify and potentially remove big binary commits inside an SVN repository?

I am working with an SVN repository that is over 3 years old, contains over 6,100 commits and is over 1.5 GB in size. I want to reduce the size of the SVN repository (I'm not talking about the size of a full SVN export - I mean the full repository…
InvertedAcceleration
  • 10,695
  • 9
  • 46
  • 71
14
votes
4 answers

SVN Monitor like software for Git repositories

Is there anything like SVN Monitor for Git repositories? Something that will enable me to monitor checkins and do comparisons.
Quintin Par
  • 15,862
  • 27
  • 93
  • 146
14
votes
1 answer

How to deal with tree conflict while merging using TortoiseSVN, in case of a deleted folder?

I have this scenario: A folder with the content is deleted from the local copy of our branch. The changes are committed in SVN Branch. (We still have this folder in Trunk) Now i want to merge everything from Branch to Trunk I go to the local copy…
akcasoy
  • 6,497
  • 13
  • 56
  • 100
14
votes
4 answers

Is it possible to schedule an svn update?

I use eclipse galileo with subversive plugin or Tortoise SVN to do an update. It is possible to schedule an auto-update (eg. every night)? If yes, is it possible to configure it to just update the non-conflicting files?
Gaurav
  • 458
  • 2
  • 5
  • 13
14
votes
1 answer

How to commit changes to SVN External?

I have a SVN external setup in my code which pulls all the code for a directory from another repository. When I make a change to that code and try to commit the change, it doesn't show any changes to commit in tortoiseSVN. How do I commit changes…
Tyler Schroeder
  • 730
  • 3
  • 6
  • 14
14
votes
5 answers

Apply failed hunk with TortoiseSVN

How can I apply a patch with TortoiseSVN that initially fails with one or more rejected hunks? Is it possible to use TortoiseMerge to review the patch/the failed result and pick the lines I want to be applied? If not, what do I do after I encounter…
knittl
  • 246,190
  • 53
  • 318
  • 364
14
votes
2 answers

with svn, check the revision number when offline

I'm offline (well, to be exact my svn repository in unreachable right now), but I have a fully fledged working copy on which I am, well, working :-) Now I need to know the revision number of a file. How can I check the revision number of a…
Davide
  • 17,098
  • 11
  • 52
  • 68
14
votes
8 answers

Matlab Simulink version control with multiple developers

We're using Matlab Simulink for model development (and Real-Time Workshop autocoding) within a team of several developers. We currently use Visual Source Safe (yes, I know its terrible) for version control, using locks to prevent conflicting…
Jon Mills
  • 1,855
  • 4
  • 19
  • 28
14
votes
3 answers

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository directory and associated metadata: svn co…
Alex Balashov
  • 3,218
  • 4
  • 27
  • 36
14
votes
4 answers

Using Subversion, how can I cut from one file and paste to another preserving history

The situation is that I've spent some time messing around with some experimental code. I now want to move part of that code - about 500 lines - into another file, but I don't want to lose the history, as I would if I do a simple text-editor cut and…
user180247
14
votes
4 answers

How do you use git svn?

Please provide tips for effectively using git with svn. What are your "best practices"?
1800 INFORMATION
  • 131,367
  • 29
  • 160
  • 239
14
votes
3 answers

Proper mime-type of shell scripts in subversion

When I add a shell script (foo.sh) to subversion, by default it sets the svn:mime-type to application/x-shellscript. Since this does not start with text/, diff and blame essentially ignore the file. I looked at the official list of text mime-types…
Troy Daniels
  • 3,270
  • 2
  • 25
  • 57
1 2 3
99
100