<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://halfface.se/wiki/index.php?action=history&amp;feed=atom&amp;title=Svn</id>
	<title>Svn - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://halfface.se/wiki/index.php?action=history&amp;feed=atom&amp;title=Svn"/>
	<link rel="alternate" type="text/html" href="https://halfface.se/wiki/index.php?title=Svn&amp;action=history"/>
	<updated>2026-04-19T08:58:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://halfface.se/wiki/index.php?title=Svn&amp;diff=12777&amp;oldid=prev</id>
		<title>Ekaanbj: /* header */</title>
		<link rel="alternate" type="text/html" href="https://halfface.se/wiki/index.php?title=Svn&amp;diff=12777&amp;oldid=prev"/>
		<updated>2016-12-16T15:00:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;header&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==setup svn==&lt;br /&gt;
install svn.&lt;br /&gt;
 yum install mod_dav_svn&lt;br /&gt;
&lt;br /&gt;
Create svn repository.&lt;br /&gt;
 svnadmin create /www/svn/cfengine&lt;br /&gt;
&lt;br /&gt;
Change permission.&lt;br /&gt;
 chown -R apache:apache /www/svn/cfengine&lt;br /&gt;
 chmod g+s /www/svn/cfengine/db&lt;br /&gt;
&lt;br /&gt;
httpd.conf&lt;br /&gt;
 &amp;lt;Location /svn/cfengine&amp;gt;&lt;br /&gt;
   DAV svn&lt;br /&gt;
   SVNPath /www/svn/cfengine&lt;br /&gt;
   AuthzSVNAccessFile /etc/httpd/conf/svnauthz.conf&lt;br /&gt;
   AuthType Basic&lt;br /&gt;
   AuthName &amp;quot;Subversion repository cfengine&amp;quot;&lt;br /&gt;
   AuthUserFile /etc/httpd/conf/passwords&lt;br /&gt;
   Order deny,allow&lt;br /&gt;
   Require valid-user&lt;br /&gt;
 &amp;lt;/Location&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Termininology==&lt;br /&gt;
 trunks		Latest. Work in the trunk &lt;br /&gt;
 tags. 		Reprecensts stable &lt;br /&gt;
 branches. 	Private working space. Could be merged.&lt;br /&gt;
&lt;br /&gt;
==Useful commands==&lt;br /&gt;
 svn -m &amp;quot;initial import&amp;quot; import . http://www.halfface.se/svn/		# Import working directory in svn.&lt;br /&gt;
 svn co http://www.halfface.se/svn/					# Check out directory.&lt;br /&gt;
 svn add *  								# Add all files in current directory to svn.&lt;br /&gt;
 svn status								# What differs. Ask stupid svn which files should be added.&lt;br /&gt;
 svn mv ../cfagent.conf .						# Move file within svn.&lt;br /&gt;
 svn rm etc								# Remove file from svn.&lt;br /&gt;
 svn ci -m &amp;quot;Report function working&amp;quot;					# Check in current status in svn.&lt;br /&gt;
 svn copy http://www.halfface.se/svn/ http://www.halfface.se/svn2/	# Copy in svn.&lt;br /&gt;
 svn copy -r 24 http://www.halfface.se/svn/ 				# Copy version 24 to&lt;br /&gt;
 svn co http://svn.klu.infineon.com/repos/AdminToolKit/ 		# Check out specific version&lt;br /&gt;
 svn up									# Update against svn data.&lt;br /&gt;
 svn --username bjorklun ls http://www.halfface.se/svn/		# List contents of repository as user bjorklun&lt;br /&gt;
 svn status								# Which files has changed.&lt;br /&gt;
 svn propset svn:executable &amp;quot;*&amp;quot; filename				# Change permisson on files..&lt;br /&gt;
 svn propset svn:executable ON somescript				# Make file executeble in svn repository.&lt;br /&gt;
 svn diff -r 3900 /filename						See how your working copy&amp;#039;s modifications compare against an older revision:&lt;br /&gt;
 svn diff -r 3000:3500							Compare revision 3000 to revision 3500 of all files in trunk using range notation&lt;br /&gt;
 svn switch --relocate http://192.168.7.139 http://192.168.29.52	Change server ip&lt;br /&gt;
&lt;br /&gt;
==header==&lt;br /&gt;
# Enable properties for file.&lt;br /&gt;
 svn propset svn:keywords &amp;quot;file_name.txt&lt;br /&gt;
# Add the following as an header to your file.&lt;br /&gt;
 # SVN FILE: $Id$ */&lt;br /&gt;
 # @author         $Author$&lt;br /&gt;
 # @version        $Rev$&lt;br /&gt;
 # @lastrevision   $Date$&lt;br /&gt;
 # @filesource     $URL$&lt;br /&gt;
&lt;br /&gt;
=show files with differences=&lt;br /&gt;
 svn diff --summarize -r r56870:r56394 https://svn.com/trunk/&lt;br /&gt;
&lt;br /&gt;
[[Category:Applications]]&lt;br /&gt;
[[Category:Unix]]&lt;/div&gt;</summary>
		<author><name>Ekaanbj</name></author>
	</entry>
</feed>