<?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>Frozentux &#187; tortoisesvn</title>
	<atom:link href="http://www.frozentux.net/tag/tortoisesvn/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.frozentux.net</link>
	<description>Yet another site</description>
	<lastBuildDate>Mon, 24 May 2010 16:53:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Dangling locks in the Subversion tree</title>
		<link>http://www.frozentux.net/2008/09/dangling-locks-in-the-subversion-tree/</link>
		<comments>http://www.frozentux.net/2008/09/dangling-locks-in-the-subversion-tree/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 20:59:00 +0000</pubDate>
		<dc:creator>Oskar Andreasson</dc:creator>
				<category><![CDATA[Configuration Management]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[tortoisesvn]]></category>

		<guid isPermaLink="false">http://fs1/fs1/?p=187</guid>
		<description><![CDATA[I recently ran into another rather peculiar and interesting case with subversion. As I&#8217;ve already explained, I don&#8217;t have actual physical access to the subversion servers we are perusing for our project. We use TortoiseSVN for access to the repository on our local systems.
My boss was working with some excel and word files checked into [...]]]></description>
			<content:encoded><![CDATA[<p>I recently ran into another rather peculiar and interesting case with subversion. As I&#8217;ve already explained, I don&#8217;t have actual physical access to the subversion servers we are perusing for our project. We use <span style="font-weight: bold;">TortoiseSVN </span>for access to the repository on our local systems.</p>
<p>My boss was working with some <span style="font-weight: bold;">excel </span>and <span style="font-weight: bold;">word </span>files checked into the repository. He had <span style="font-weight: bold;">template.xls </span>locked as he was working in it, he decided to rename it to a template, so <span style="font-weight: bold;">template.xlt </span>it is (and checked in). After doing some more work, he decided this was a bad idea, so he changes it back to <span style="font-weight: bold;">template.xls</span>, and tries to check it back in again&#8230; no luck, it wont work.</p>
<p>15-20 minutes worth of investigation later, we found the problem. <span style="font-weight: bold;">TortoiseSVN </span>had been configured to always check<span style="font-style: italic;"> &#8220;Keep Locks&#8221; </span>on commit, hence the client kept the lock when he commited the <span style="font-weight: bold;">template.xls </span>deletion. To fix this problem, run <span style="font-style: italic;">svnadmin lslock </span>and then <span style="font-style: italic;">svnadmin rmlock </span>the file in question. <span style="font-weight: bold;">Please note </span>that this requires actual access to the physical subversion repository. Http or svnserve will not do in other words.</p>
<p>A step by step on how to cause the Dangling lock problem &#8212; All of the actions are done via TortoiseSVN interface:
<ol>
<li>Create a repository.</li>
<li>Check out the repository.</li>
<li>Add a file to the repository, set the svn:needs-lock property.</li>
<li>Commit the file.</li>
<li>Lock the file.</li>
<li>Change name of the file, and check the &#8220;Keep locks&#8221; checkbutton.</li>
<li>Commit the changes.</li>
<li>Change the filename back to the original filename.</li>
<li>Commit the change. This step will fail.</li>
</ol>
<p>This is a rather funny problem imho <img src='http://www.frozentux.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> . We finally managed to get it fixed after contacting the IT department and sending them the command. 10 minutes to cause the problem, 20 minutes to analyze it, 20 hours to wait for the fix. Sometimes there should be less depth in organizations.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.frozentux.net/2008/09/dangling-locks-in-the-subversion-tree/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
