Subversion (SVN) - Versionieren, Organisieren und Verwalten, Version 27

Alte Version

Dies ist eine alte Version des Inhalts in unserem Archiv. Besuchen Sie die aktuelle Version dieser Seite.

Diese Version wurde von maitrishah1 am 23. März 2018 um 07:52 Uhr erstellt.
Bemerkung des Bearbeiters: 123

Änderungen gegenüber vorheriger Version anzeigen


Subversion (SVN) is software for versioning and organizing data, directories and files. The strengths of SVN are particularly evident in projects where several people work. Subversion can be used to synchronize or merge individual project files.

SVN hoster

Of course, to SVN you need SVN server. Since mostly only webspace is available and you can not install it on this one. The following are all free:


particularities
free gift code Trac, wikis
free gift card For open source projects
SourceForge
For open source projects
berliOS
For open source projects
RB Media Group GmbH
Wiki, Forum, Blog, Bugtracker, File Hosting

Set up SVN server

SVN server can be described in detail. This article has not been published. Of course, this article should be replaced with a simple link.

Here is the article: -> Can not find the article. Where should this be? (Fabian)

SVN clients

The Subversion client has grown tremendously in recent years. In general, one can distinguish between three different types of clients. Stand-alone clients are programs that are not integrated into any other existing software. Desktop-integrated clients are programs that integrate with the operating system, use Windows Explorer to synchronize and search the SVN files. The third option is to integrate Subversion into an IDE . This allows subversion to be used directly from the development environment.

Stand-alone clients

surname
platform
particularities
esvn Windows, Mac OS X and Unix similar
A QT based GUI
rapidsvn
Windows, Mac OS / X and Unix similar
A wxWidgets based GUI
Versions Mac OS X
ZigVersion Mac OS X

Desktop integrated

surname platform
particularities Screenshot
TortoiseSVN
Windows (2000 SP4, XP, Vista, 7 (x86 / x64) or later)
Windows shell extension
TortoiseSVN
SCPlugin Mac OS X
KSvn Linux
Konqueror-integrated

IDE plugins

surname IDE
subclipse Eclipse
subversive Eclipse
AnkhSVN Microsoft Visual Studio
VisualSVN Microsoft Visual Studio .NET 2003 & 2005
Aigenta Unified SCC MSSCCI-compatible program search for Microsoft Visual Studio
WLW SVN WebLogic Workshop (8.1.3 / 8.1.4)
CW subversion Metrowerks CodeWarrior

general

Explanation of terms as a working copy and repository ...

Tags and branches

workflow

Add introductory text

Update working copy

The update command synchronizes the local working copy with the repository. This will give you the changes of other users. You should execute this command before you want to change something. The output gives you a list of all changes.

 
Text
1
2
3
4
Text $ svn update 
U foo.php 
A bar.php 
Updated to revision 12.

The type of change is indicated by a character in front of the corresponding file.

character
importance
U
A file has been updated .
A
A new file or folder has been added to the working copy .
D
A file or folder has been removed from the working copy .
R
A file or folder has been replaced .
G
The file was edited locally and server-side. The two files were merged .
C
The file was edited locally and server-side. Could not be together because of overlaps. In this case, you have to do the assembly manually.

Make changes

After updating the working update copy, you can make changes. Initially, these changes will only be made locally and will not commit affect the repository until the next one . More on that later.

Add file / folder

To add a folder or file, execute the add command.

 
Text
1
2
Text $ svn add foo.bar 
A foo.bar
Remove file / folder

To remove a folder or file, execute the deletecommand.

 
Text
1
2
Text $ svn delete foo.bar 
D foo.bar
Move file / folder

Copy / Export File / Folder

 
Text
1
Textsvn export -r "revision (eg HEAD)" "repository / file" "destination folder / file name"

Reset working copy

If you want to reset a local working copy you use the revert command. This replaces the file with the unchanged file in the cache. It does not need a connection to the server.

Add changes

To add changes to the local working copy to the repository, use the commit command.

Compare revisions (default diff)

Read log file of a revision

 
Text
1
Textsvn log "path to repository / filename" -q