<?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>A glass case of thoughts &#187; SVN</title>
	<atom:link href="http://jyotsna.philogy.com/category/tech/svn/feed/" rel="self" type="application/rss+xml" />
	<link>http://jyotsna.philogy.com</link>
	<description>Brain munch illustrated</description>
	<lastBuildDate>Wed, 24 Mar 2010 05:49:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>tortoise SVN: Copy a SVN bound directory to another repository</title>
		<link>http://jyotsna.philogy.com/2009/11/tortoise-svn-copy-a-svn-bound-directory-to-another-repository/</link>
		<comments>http://jyotsna.philogy.com/2009/11/tortoise-svn-copy-a-svn-bound-directory-to-another-repository/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 12:54:39 +0000</pubDate>
		<dc:creator>Jyotsna</dc:creator>
				<category><![CDATA[SVN]]></category>
		<category><![CDATA[copy svn directory]]></category>
		<category><![CDATA[svn directory replicate]]></category>
		<category><![CDATA[tortoise svn]]></category>
		<category><![CDATA[tortoiseSVN]]></category>

		<guid isPermaLink="false">http://jyotsna.philogy.com/?p=397</guid>
		<description><![CDATA[This post explains the simplest way to copy a SVN bound directory from one repository to another repository]]></description>
			<content:encoded><![CDATA[<p>Task at hand:<br />
Copy a directory from within one SVN repository to another </p>
<p>Assumptions:<br />
- Tortoise SVN as SVN client<br />
- The two SVN repositories &#8211; being copied from and being copied to already exist </p>
<p>Steps:<br />
1. Right click SVN bound directory that you with to copy. Choose tortoise SVN -> Export.<br />
2. Specify path to an empty folder e.g. &#8220;c:\to_add&#8221;. Click on OK.<br />
3. Now you have the SVN bound directory contents in this new directory &#8220;to_add&#8221;.<br />
4. Right click on &#8220;to_add&#8221; and choose tortoise svn -> add<br />
5. Specify path to the new repository and location inside it.<br />
6. Right click on &#8220;to_add&#8221; and choose SVN Commit to make your changes permanent.</p>
<p>Voila !! You are done.</p>
]]></content:encoded>
			<wfw:commentRss>http://jyotsna.philogy.com/2009/11/tortoise-svn-copy-a-svn-bound-directory-to-another-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What to do : When your SVN client saves a wrong password -&gt; Make it forget it</title>
		<link>http://jyotsna.philogy.com/2009/05/what-to-do-when-your-svn-client-saves-a-wrong-password/</link>
		<comments>http://jyotsna.philogy.com/2009/05/what-to-do-when-your-svn-client-saves-a-wrong-password/#comments</comments>
		<pubDate>Wed, 13 May 2009 06:30:58 +0000</pubDate>
		<dc:creator>Jyotsna</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[make tortoise svn forget password]]></category>
		<category><![CDATA[putty session forget password]]></category>
		<category><![CDATA[svn client save wrong password]]></category>

		<guid isPermaLink="false">http://jyotsna.philogy.com/?p=308</guid>
		<description><![CDATA[Applies to:
Any SVN client using putty to connect to SVN server. For e.g. tortoise SVN
Who is this post for?
This post is for anyone who wants SVN client and server to forget currently configured password
Steps to follow

Know your repository URL
For this you should be using tortoise SVN repo-browser and check out the URL. In my case, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Applies to:</strong><br />
Any SVN client using putty to connect to SVN server. For e.g. tortoise SVN</p>
<p><strong>Who is this post for?</strong><br />
This post is for anyone who wants SVN client and server to forget currently configured password</p>
<p><strong>Steps to follow</strong></p>
<ol>
<li>Know your repository URL<br />
For this you should be using tortoise SVN repo-browser and check out the URL. In my case, it looks like</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svn+ssh://jyotsnas@visharad/svnRepos/travel_broker</pre></div></div>

<p>This tells me following</p>
<ul>
<li>linux username being used is jyotsnas</li>
<li>the svn server is named as visharad</li>
<li>Probably all SVN repositories are located under /var/svnRepos</li>
</ul>
</li>
<li>Now that we know the servername, in this case &#8216;visharad&#8217;, open putty. Under saved sessions list, you should find your server name. Refer to following screenshot for the same<br />
<br/><br />
<div id="attachment_318" class="wp-caption alignnone" style="width: 466px"><img src="http://jyotsna.philogy.com/wp-content/uploads/2009/05/putty-visharad.jpg" alt="visharad in saved sessions of putty" title="putty-visharad" width="456" height="435" class="size-full wp-image-318" /><p class="wp-caption-text">visharad in saved sessions of putty</p></div>
</li>
<li>
Click on Load button so that we can find out more. Putty looks like following when I clicked Load<br />
<br/><br />
<div id="attachment_319" class="wp-caption alignnone" style="width: 466px"><img src="http://jyotsna.philogy.com/wp-content/uploads/2009/05/putty-visharad-loaded.jpg" alt="visharad session loaded in putty" title="putty-visharad-loaded" width="456" height="435" class="size-full wp-image-319" /><p class="wp-caption-text">visharad session loaded in putty</p></div></p>
<p>Looking at this I have more concrete information about server i.e. Host name/IP : 192.168.1.50
</li>
<li>
Let&#8217;s move to the SSH->Auth in left tree structure &#8211;<br />
<br/><br />
<div id="attachment_320" class="wp-caption alignnone" style="width: 466px"><img src="http://jyotsna.philogy.com/wp-content/uploads/2009/05/putty-visharad-ssh-auth.jpg" alt="visharad ssh auth settings in putty" title="putty-visharad-ssh-auth" width="456" height="435" class="size-full wp-image-320" /><p class="wp-caption-text">visharad ssh auth settings in putty</p></div></p>
<p>This screen tells me a path to a private key file on my machine.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">F:\Jyotsna\SVN sessions\visharad.ppk</pre></div></div>

<p>Delete this path from the text box.
</li>
<li>
Go back to sessions in left tree and click on <b>save</b>.</p>
<p>When you delete this path, putty is going to forget the password to be used. Since tortoise SVN uses putty in turn to connect to server, it will forget it too. And that is it.
</li>
</ol>
<p><strong>Questions you might have</strong></p>
<ol>
<li>Why should I not delete the session instead of the private key file path?<br />
<br/></p>
<p>In cases like mine, visharad name was given to a machine with IP 192.168.1.50. If I had deleted the session, I would have have to relocate all the SVN repositories already checked out on my machine so that the new URL contains 192.168.1.50 instead of visharad. Not deleting the session saves this hassel of mine and still make tortoise svn not use the remembered password.</P>
</li>
<li>How can I make tortoise SVN remember a new password?
<p>Just refer to this <a href="http://jyotsna.philogy.com/2008/12/how-to-make-svn-remember-password/">link</a> for the instructions</p>
</li>
</ol>
<p><strong>Related posts</strong></p>
<ul>
<li><a href="http://jyotsna.philogy.com/2008/12/how-to-make-svn-remember-password/">How to make SVN remember password</a></li>
<li><a href="http://jyotsna.philogy.com/2009/02/linux-how-to-replicate-svn-repository/">linux how to: replicate svn repository</a></li>
<li><a href="http://jyotsna.philogy.com/2008/12/linux-create-svn-repository/">linux: create svn repository</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jyotsna.philogy.com/2009/05/what-to-do-when-your-svn-client-saves-a-wrong-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux how to: replicate svn repository</title>
		<link>http://jyotsna.philogy.com/2009/02/linux-how-to-replicate-svn-repository/</link>
		<comments>http://jyotsna.philogy.com/2009/02/linux-how-to-replicate-svn-repository/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 11:27:22 +0000</pubDate>
		<dc:creator>Jyotsna</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[copy svn repository]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[subversion|svn replicate]]></category>
		<category><![CDATA[svn repository replicate]]></category>

		<guid isPermaLink="false">http://jyotsna.philogy.com/?p=246</guid>
		<description><![CDATA[Task at hand:
I have a repository on one of the linux server. As a part of upgradation process, we decided to move the SVN server to a newer better linux infrastructure. Task at hand is to replicate the svn repositories on new server.
Solution:

Create dump for existing repository

svnadmin dump /path/to/repo &#62; /path/to/dump/folder/myrepo.dump

This command creates a .dump [...]]]></description>
			<content:encoded><![CDATA[<p><b>Task at hand:</b></p>
<p>I have a repository on one of the linux server. As a part of upgradation process, we decided to move the SVN server to a newer better linux infrastructure. Task at hand is to replicate the svn repositories on new server.</p>
<p><b>Solution:</b></p>
<ol>
<li>Create dump for existing repository

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svnadmin dump /path/to/repo &gt; /path/to/dump/folder/myrepo.dump</pre></div></div>

<p>This command creates a .dump file and shows the revisions being dumped as it progresses</li>
<li>Transfer the dump file to new server. This can be accomplished through SSH / FTP connection or a simple scp command as:</li>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">scp /path/to/dump/folder/myrepo.dump user@new_server:/path/to/dump/folder/myrepo.dump</pre></div></div>

<li>Log into new server and switch to the directory where you want to place your replicated svn repository. Then, create an empty svn repository

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svnadmin create myrepo</pre></div></div>

</li>
<li>Load empty reposity with dump file

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svnadmin load myrepo &lt; /path/to/dump/folder/myrepo.dump</pre></div></div>

</li>
<li>Define group ownership and permission

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">chown -R :all myrepo
chmod -R 770 myrepo</pre></div></div>

</li>
</ol>
<p><strong>Related posts</strong></p>
<ul>
<li><a href="http://jyotsna.philogy.com/2009/05/what-to-do-when-your-svn-client-saves-a-wrong-password/">What to do : When your SVN client saves a wrong password</a></li>
<li><a href="http://jyotsna.philogy.com/2008/12/linux-create-svn-repository/">linux: create svn repository</a></li>
<li><a href="http://jyotsna.philogy.com/2008/12/how-to-make-svn-remember-password/">How to make SVN remember password</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jyotsna.philogy.com/2009/02/linux-how-to-replicate-svn-repository/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>linux: create svn repository</title>
		<link>http://jyotsna.philogy.com/2008/12/linux-create-svn-repository/</link>
		<comments>http://jyotsna.philogy.com/2008/12/linux-create-svn-repository/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 06:38:57 +0000</pubDate>
		<dc:creator>Jyotsna</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[create and checkout svn repository on linux]]></category>
		<category><![CDATA[create svn on linux]]></category>
		<category><![CDATA[create svn repo + chmod]]></category>
		<category><![CDATA[create svn repository linux]]></category>
		<category><![CDATA[create svn server]]></category>
		<category><![CDATA[creating repository using svn on linux]]></category>
		<category><![CDATA[linux commands to create a new repository]]></category>
		<category><![CDATA[svn create repo command line]]></category>
		<category><![CDATA[svn repo]]></category>
		<category><![CDATA[svn repository creation]]></category>
		<category><![CDATA[svnadmin]]></category>

		<guid isPermaLink="false">http://jyotsna.philogy.com/?p=128</guid>
		<description><![CDATA[Assumptions:
You already have SVN installed on your linux server. If you do not know if it is installed, just type command

which svn

If this returns a valid path as output, then it means that svn is installed on your linux box. If not, you need to install it. Installing subversion is very easy (for most distributions) [...]]]></description>
			<content:encoded><![CDATA[<p><b>Assumptions:</b><br />
You already have SVN installed on your linux server. If you do not know if it is installed, just type command</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">which svn</pre></div></div>

<p>If this returns a valid path as output, then it means that svn is installed on your linux box. If not, you need to install it. Installing subversion is very easy (for most distributions) and ample documentation is available on the web. You can start with <a href="http://subversion.tigris.org">http://subversion.apache.org/</a>.</p>
<p><b>Four steps to complete svn repository creation on linux</b></p>
<ol>
<li>log onto server as root</li>
<li>I prefer to have all svn repositories in one directory for better organization and easy maintenance. So next step for me would be to change to my svn directory.

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">cd /svnRepos</pre></div></div>

<p>If you do not already have a directory for svn repositories, I would recommend creating one.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">mkdir svnRepos</pre></div></div>

</li>
<li>Create repository using following command</li>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svnadmin create /path/to/repo/RepoName</pre></div></div>

<p>where : RepoName is the name of repository to be created. As an example, I want to create a repository for my testproject. I would write</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svnadmin create testproject</pre></div></div>

<li>Change group ownership of repository for the intended group. In this case, consider I have a user group created as &#8220;all&#8221; and I want this group to have ownership to this repository.

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">chown -R :all /path/to/repo/RepoName</pre></div></div>

</li>
<li>Grant Read/Write/Execute permissions to &#8220;all&#8221; on this repository

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">chmod -R 770 /path/to/repo/RepoName</pre></div></div>

</li>
</ol>
<p>After this, all you need to do is</p>
<ul>
<li>Install a client like tortoiseSVN on the user&#8217;s machine</li>
<li>SVN Checkout the repository. I would use a URL like following to connect to my newly created repository

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svn+ssh://username@servername/path/to/repo/RepoName</pre></div></div>

<p>Where</p>
<ul>
<li>username: one of the users from group all</li>
<li>servername: my linux server which hosts SVN</li>
</ul>
<p>For my testproject, the path looks like</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svn+ssh://jyotsnas@servername/svnRepos/testproject</pre></div></div>

</li>
</ul>
<p><strong>Related posts</strong></p>
<ul>
<li><a href="http://jyotsna.philogy.com/2009/05/what-to-do-when-your-svn-client-saves-a-wrong-password/">What to do : When your SVN client saves a wrong password</a></li>
<li><a href="http://jyotsna.philogy.com/2009/02/linux-how-to-replicate-svn-repository/">linux how to: replicate svn repository</a></li>
<li><a href="http://jyotsna.philogy.com/2008/12/how-to-make-svn-remember-password/">How to make SVN remember password</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jyotsna.philogy.com/2008/12/linux-create-svn-repository/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>How to make SVN remember password</title>
		<link>http://jyotsna.philogy.com/2008/12/how-to-make-svn-remember-password/</link>
		<comments>http://jyotsna.philogy.com/2008/12/how-to-make-svn-remember-password/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 09:54:24 +0000</pubDate>
		<dc:creator>Jyotsna</dc:creator>
				<category><![CDATA[SVN]]></category>
		<category><![CDATA[how to save password for svn+ssh]]></category>
		<category><![CDATA[id_dsa]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux remember password svn]]></category>
		<category><![CDATA[linux svn password]]></category>
		<category><![CDATA[make tortoisesvn remember]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[remember]]></category>
		<category><![CDATA[remember password]]></category>
		<category><![CDATA[remember password svn]]></category>
		<category><![CDATA[svn save password]]></category>
		<category><![CDATA[svn tortoise "save password"]]></category>
		<category><![CDATA[svn+ssh]]></category>
		<category><![CDATA[tortoise svn]]></category>
		<category><![CDATA[tortoise svn remember password]]></category>
		<category><![CDATA[tortoiseSVN]]></category>

		<guid isPermaLink="false">http://jyotsna.philogy.com/?p=12</guid>
		<description><![CDATA[Who is this post for?
 This post is for anyone who wants a step by step guide to accomplish any of the following

Make a SVN client like tortoise svn remember password
Make linux server remember your password when logging through putty

Tools you need:

Putty
Puttygen

What you need to do:

Using putty &#8211; login to linux server. change directory to [...]]]></description>
			<content:encoded><![CDATA[<p><b>Who is this post for?</b></p>
<p> This post is for anyone who wants a step by step guide to accomplish any of the following</p>
<ol>
<li>Make a SVN client like tortoise svn remember password</li>
<li>Make linux server remember your password when logging through putty</li>
</ol>
<p><b>Tools you need:</b></p>
<ul>
<li>Putty</li>
<li>Puttygen</li>
</ul>
<p><b>What you need to do:</b></p>
<ol>
<li>Using putty &#8211; login to linux server. change directory to ~/.ssh/ by typing following command</li>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">cd ~/.ssh</pre></div></div>

<li>Type command

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">ssh-keygen -b 1024 -t dsa</pre></div></div>

<p>and press enter. Do not enter a passphrase. Hit enter when prompted for one. Same for the filename. default filename = <em>id_dsa</em> and <em>id_dsa.pub</em>. id_dsa is the private key file and id_dsa.pub is the public key file.</li>
<li>type command

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">cat ~/.ssh/id_dsa.pub</pre></div></div>

<p>Copy the output to the clipboard by selecting the output by mouse.</li>
<li>Type command

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">vi ~/.ssh/authorized_keys</pre></div></div>

<p>Hit <em>i</em> to enter Insert mode and then paste your public key (if there is already a key in this file, move to the bottom before pasting). Hit the ESC key to leave Insert mode and type <em>:wq</em> and hit enter to save and exit vi editor.</li>
<li>Using ftp download your key files &#8211; both private and public</li>
<p><br/></p>
<li>In order to use the private key we get from the server, we have to convert it to a putty format. This is because the private key file format is not specified by some standard body. We can accomplish this using puttygen. Open Puttygen</li>
<p><br/></p>
<li>In the tree structure on left, choose conversion -&gt; import key -&gt; choose the private key file downloaded from ftp</li>
<p><br/></p>
<li>Choose to save private key. Choose path and save the file as anything.ppk</li>
<p><br/></p>
<li>Run Putty. Specify parameters
<ul>
<li>Session-&gt;HostName: Hostname or IP Adress of your server</li>
<li>Session-&gt;Protocol: SSH</li>
<li>Session-&gt;Saved Sessions: MyConnection</li>
<li>SSH-&gt;Prefered SSH Protocol version: 2</li>
<li>SSH-&gt;Auth-&gt;Private Key file for auth: $PATH$mykey.PKK (replace $PATH$ with real path to the mykey.PKK file)</li>
</ul>
</li>
<li>Go back to Session tab and hit “save” button. You will see “MyConnection” in the list of available connections.</li>
<p><br/></p>
<li>Next click “open” and you should see a telnet login prompt. Use “myuser” as username (without double quotes of course) and if everything is OK, you don’t have to provide a password to your system. If the system still requires a password, something went wrong.</li>
<p><br/></p>
<li>Now that linux server and putty manage to remember your password, you need an application client to use it. In this case it is SVN client e.g. tortoise svn. Go to TortoiseSVN-&gt;RepoBrowser and specify a URL like this:

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svn+ssh://myuser@MyConnection/usr/local/repos</pre></div></div>

<p>&#8230;where MyConnection is the putty session name and /usr/local/repos is my svn repository on linux server</li>
</ol>
<p>And you are done &#8230;</p>
<p><strong>Related posts</strong></p>
<ul>
<li><a href="http://jyotsna.philogy.com/2009/05/what-to-do-when-your-svn-client-saves-a-wrong-password/">What to do : When your SVN client saves a wrong password</a></li>
<li><a href="http://jyotsna.philogy.com/2009/02/linux-how-to-replicate-svn-repository/">linux how to: replicate svn repository</a></li>
<li><a href="http://jyotsna.philogy.com/2008/12/linux-create-svn-repository/">linux: create svn repository</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jyotsna.philogy.com/2008/12/how-to-make-svn-remember-password/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
