<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Life of a Plesk Admin &#187; svn</title>
	<atom:link href="http://www.lifeofapleskadmin.com/category/svn/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lifeofapleskadmin.com</link>
	<description>Where i go for Geek</description>
	<lastBuildDate>Wed, 04 Jan 2012 15:18:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Start svn server</title>
		<link>http://www.lifeofapleskadmin.com/2011/10/start-svn-server/</link>
		<comments>http://www.lifeofapleskadmin.com/2011/10/start-svn-server/#comments</comments>
		<pubDate>Sat, 01 Oct 2011 20:14:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.lifeofapleskadmin.com/?p=354</guid>
		<description><![CDATA[svnserve -d]]></description>
			<content:encoded><![CDATA[<pre>svnserve -d
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.lifeofapleskadmin.com/2011/10/start-svn-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install subversion client on Linux server?</title>
		<link>http://www.lifeofapleskadmin.com/2011/02/how-to-install-subversion-client-on-linux-server/</link>
		<comments>http://www.lifeofapleskadmin.com/2011/02/how-to-install-subversion-client-on-linux-server/#comments</comments>
		<pubDate>Sat, 05 Feb 2011 21:27:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.lifeofapleskadmin.com/?p=241</guid>
		<description><![CDATA[Svn (subversion) is used to maintain current and historical versions of files such as source code, web pages, and documentation. Its goal is to be a mostly-compatible successor to the widely used Concurrent Versions System (CVS). It is very easy &#8230; <a href="http://www.lifeofapleskadmin.com/2011/02/how-to-install-subversion-client-on-linux-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Svn (subversion)</strong> is used to maintain current and historical versions of files such as source code, web pages, and documentation. Its goal is to be a mostly-compatible successor to the widely used Concurrent Versions System (CVS).</p>
<p>It is very easy to install subversion client on<strong> linux OS</strong> using <strong>yum</strong>. You can us following command to install subversion client.</p>
<pre><strong>root@server [~]# yum install subversion</strong></pre>
<p>Source: <a href="http://linuxwindowsmaster.com/how-to-install-subversion-client-on-linux-server/">http://linuxwindowsmaster.com/how-to-install-subversion-client-on-linux-server/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lifeofapleskadmin.com/2011/02/how-to-install-subversion-client-on-linux-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set the text editor in SubVersion to VI</title>
		<link>http://www.lifeofapleskadmin.com/2009/10/set-the-text-editor-in-subversion-to-vi/</link>
		<comments>http://www.lifeofapleskadmin.com/2009/10/set-the-text-editor-in-subversion-to-vi/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 01:20:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.lifeofapleskadmin.com/?p=121</guid>
		<description><![CDATA[export EDITOR=vi or EDITOR=vi; export EDITOR Source: http://codenewbie.com/forum/program-design-methods/3251-subversion-tutorial.html]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">EDITOR</span>=<span style="color: #c20cb9; font-weight: bold;">vi</span></pre></div></div>

<p>or</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">EDITOR</span>=<span style="color: #c20cb9; font-weight: bold;">vi</span>; <span style="color: #7a0874; font-weight: bold;">export</span> EDITOR</pre></div></div>

<p>Source: <a href="http://codenewbie.com/forum/program-design-methods/3251-subversion-tutorial.html">http://codenewbie.com/forum/program-design-methods/3251-subversion-tutorial.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lifeofapleskadmin.com/2009/10/set-the-text-editor-in-subversion-to-vi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ignore Files and Directories in Subversion</title>
		<link>http://www.lifeofapleskadmin.com/2009/05/ignore-files-and-directories-in-subversion/</link>
		<comments>http://www.lifeofapleskadmin.com/2009/05/ignore-files-and-directories-in-subversion/#comments</comments>
		<pubDate>Sun, 17 May 2009 19:03:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.lifeofapleskadmin.com/?p=92</guid>
		<description><![CDATA[# --------------------------------------------------------------------- # Ignore all the .txt files in the /trunk/Blah/ directory # --------------------------------------------------------------------- &#160; # Go to the directory cd trunk/Blah/ # The directory with the files &#160; # Start editing the properties for the current directory svn propedit &#8230; <a href="http://www.lifeofapleskadmin.com/2009/05/ignore-files-and-directories-in-subversion/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># ---------------------------------------------------------------------</span>
<span style="color: #666666; font-style: italic;">#  Ignore all the .txt files in the /trunk/Blah/ directory</span>
<span style="color: #666666; font-style: italic;"># ---------------------------------------------------------------------</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Go to the directory</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> trunk<span style="color: #000000; font-weight: bold;">/</span>Blah<span style="color: #000000; font-weight: bold;">/</span>              <span style="color: #666666; font-style: italic;"># The directory with the files</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Start editing the properties for the current directory</span>
<span style="color: #c20cb9; font-weight: bold;">svn</span> propedit <span style="color: #c20cb9; font-weight: bold;">svn</span>:ignore .   <span style="color: #666666; font-style: italic;"># Opens an editor (SVN_EDITOR, EDITOR)</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Add the following value with a new line, save, and exit:</span>
<span style="color: #000000; font-weight: bold;">*</span>.txt
&nbsp;
<span style="color: #666666; font-style: italic;"># See that things worked</span>
<span style="color: #c20cb9; font-weight: bold;">svn</span> propget <span style="color: #c20cb9; font-weight: bold;">svn</span>:ignore .    <span style="color: #666666; font-style: italic;"># So you can see the properties</span>
<span style="color: #c20cb9; font-weight: bold;">svn</span> status <span style="color: #660033;">--no-ignore</span>      <span style="color: #666666; font-style: italic;"># You should see an 'I' next to the ignored files</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Commit</span>
<span style="color: #c20cb9; font-weight: bold;">svn</span> commit <span style="color: #660033;">-m</span> <span style="color: #ff0000;">&quot;New Ignores&quot;</span> <span style="color: #666666; font-style: italic;"># You must commit the new property change</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># ---------------------------------------------------------------------</span>
<span style="color: #666666; font-style: italic;">#     Ignore a single file secret.txt in the /trunk/ directory</span>
<span style="color: #666666; font-style: italic;"># ---------------------------------------------------------------------</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Go to the directory</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> trunk<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Add just the single file to the current directories ignore list (like above)</span>
<span style="color: #666666; font-style: italic;"># Note the dot at the end of the command is important</span>
<span style="color: #c20cb9; font-weight: bold;">svn</span> propset <span style="color: #c20cb9; font-weight: bold;">svn</span>:ignore secret.txt .
&nbsp;
<span style="color: #666666; font-style: italic;"># See that things worked</span>
<span style="color: #c20cb9; font-weight: bold;">svn</span> propget <span style="color: #c20cb9; font-weight: bold;">svn</span>:ignore .    <span style="color: #666666; font-style: italic;"># Notice the single file was added to the list</span>
<span style="color: #c20cb9; font-weight: bold;">svn</span> status <span style="color: #660033;">--no-ignore</span>      <span style="color: #666666; font-style: italic;"># You should see an 'I' next to the ignored files</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Commit</span>
<span style="color: #c20cb9; font-weight: bold;">svn</span> commit <span style="color: #660033;">-m</span> <span style="color: #ff0000;">&quot;Its secret&quot;</span>  <span style="color: #666666; font-style: italic;"># You must commit the new property change</span></pre></div></div>

<p>Source: <a href="http://blog.bogojoker.com/2008/07/command-line-svnignore-a-file/">http://blog.bogojoker.com/2008/07/command-line-svnignore-a-file/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lifeofapleskadmin.com/2009/05/ignore-files-and-directories-in-subversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setup svn repo with an auto update hook</title>
		<link>http://www.lifeofapleskadmin.com/2009/04/setup-svn-repo-auto-update-hook/</link>
		<comments>http://www.lifeofapleskadmin.com/2009/04/setup-svn-repo-auto-update-hook/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 11:35:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.lifeofapleskadmin.com/?p=60</guid>
		<description><![CDATA[This is on a MediaTemple VPS running on CentOS 5 and is assuming you already have svn installed So first thing is to go into the hooks folder for a particluar svn repository cd /var/svn/website/hooks You&#8217;ll see they all have &#8230; <a href="http://www.lifeofapleskadmin.com/2009/04/setup-svn-repo-auto-update-hook/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>This is on a MediaTemple VPS running on CentOS 5 and is assuming you already have svn installed</strong></p>
<p>So first thing is to go into the hooks folder for a particluar svn repository</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>website<span style="color: #000000; font-weight: bold;">/</span>hooks</pre></div></div>

<p>You&#8217;ll see they all have .tmpl on the end &#8211; so the&#8217;yre all just templates</p>
<p>To make it active we need to remove the .tmpl<br />
The one we want is post-commit.tmpl<br />
So jut need to copy it to new file without the extension</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> post-commit.tmpl post-commit</pre></div></div>

<p>So now we need to vi into it<br />
You&#8217;ll see its full or instructions, etc.<br />
You can just leave that<br />
Go down to bottom<br />
Comment out the last 5 lines, well last 2 and the 2 above</p>
<p>Now add two lines whever u want:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>vhosts<span style="color: #000000; font-weight: bold;">/</span>somedomain.com<span style="color: #000000; font-weight: bold;">/</span>subdomains<span style="color: #000000; font-weight: bold;">/</span>devdomain<span style="color: #000000; font-weight: bold;">/</span>httpdocs<span style="color: #000000; font-weight: bold;">/</span>  <span style="color: #666666; font-style: italic;">#path to website</span>
<span style="color: #c20cb9; font-weight: bold;">svn</span> up</pre></div></div>

<p>Ok save and exit</p>
<p>Ok now need to make executable</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">755</span> post-committ</pre></div></div>

<p>Now, the script needs to be owned by a user that has an svn account set up in the repo</p>
<p>To see list of users look in the passwd file ( /var/svn/website/conf/ )</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chown</span> username post-commit</pre></div></div>

<p>Now u can test with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>post-commit</pre></div></div>

<p>It might need the ownership of whoever made the working copy checkout on the server, the ones I have done I have always made the first checkout on the server so it&#8217;s always been my account.  It will give an error if it needs to be a different user ownership anyway.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lifeofapleskadmin.com/2009/04/setup-svn-repo-auto-update-hook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>svn checkout — Check out a working copy from a repository.</title>
		<link>http://www.lifeofapleskadmin.com/2009/04/svn-checkout-%e2%80%94-check-out-a-working-copy-from-a-repository/</link>
		<comments>http://www.lifeofapleskadmin.com/2009/04/svn-checkout-%e2%80%94-check-out-a-working-copy-from-a-repository/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 15:15:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.lifeofapleskadmin.com/?p=47</guid>
		<description><![CDATA[Synopsis svn checkout URL... &#91;PATH&#93; Description Check out a working copy from a repository. If PATH is omitted, the basename of the URL will be used as the destination. If multiple URLs are given each will be checked out into &#8230; <a href="http://www.lifeofapleskadmin.com/2009/04/svn-checkout-%e2%80%94-check-out-a-working-copy-from-a-repository/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Synopsis</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">svn</span> checkout URL... <span style="color: #7a0874; font-weight: bold;">&#91;</span>PATH<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p><strong>Description</strong></p>
<p>Check out a working copy from a repository. If PATH is omitted, the basename of the URL will be used as the destination. If multiple URLs are given each will be checked out into a subdirectory of PATH, with the name of the subdirectory being the basename of the URL.</p>
<p><strong>Alternate Names</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">co</span></pre></div></div>

<p>Source: <a href="http://svnbook.red-bean.com/en/1.0/re04.html">http://svnbook.red-bean.com/en/1.0/re04.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lifeofapleskadmin.com/2009/04/svn-checkout-%e2%80%94-check-out-a-working-copy-from-a-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

