<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Error Solved &#187; svn</title>
	<atom:link href="http://solveme.wordpress.com/category/svn/feed/" rel="self" type="application/rss+xml" />
	<link>http://solveme.wordpress.com</link>
	<description>Finally I solved the error</description>
	<lastBuildDate>Wed, 11 Nov 2009 07:19:00 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='solveme.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/605bab9a55109a23e84e1160bb1e5c3b?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Error Solved &#187; svn</title>
		<link>http://solveme.wordpress.com</link>
	</image>
			<item>
		<title>SVN commit failed: Property &#8220;svn:needs-lock&#8221; needed</title>
		<link>http://solveme.wordpress.com/2009/01/22/svn-commit-failed-property-svn-needs-lock-needed/</link>
		<comments>http://solveme.wordpress.com/2009/01/22/svn-commit-failed-property-svn-needs-lock-needed/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 07:34:57 +0000</pubDate>
		<dc:creator>daringtakers</dc:creator>
				<category><![CDATA[svn]]></category>
		<category><![CDATA[locking]]></category>

		<guid isPermaLink="false">http://solveme.wordpress.com/?p=53</guid>
		<description><![CDATA[Error description: Can not commit binary files into SVN repository.
Error message:
 A repository hook failed
svn: Commit failed (details follow):
svn: MERGE request failed on 'XYZ'
svn: Commit blocked by pre-commit hook (exit code 2) with output:
ERROR: Commit failed for the following reasons:
Property "svn:needs-lock" needed for file "xyz binary file".
Must match regex '.*'.
Look at http://subversion.tigris.org/faq.html#binary-files to see how [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=53&subd=solveme&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Error description: Can not commit binary files into SVN repository.</p>
<p><strong>Error message:</strong><br />
<code> A repository hook failed<br />
svn: Commit failed (details follow):<br />
svn: MERGE request failed on 'XYZ'<br />
svn: Commit blocked by pre-commit hook (exit code 2) with output:<br />
ERROR: Commit failed for the following reasons:<br />
Property "svn:needs-lock" needed for file "xyz binary file".<br />
Must match regex '.*'.</code></p>
<p>Look at <a href="http://subversion.tigris.org/faq.html#binary-files">http://subversion.tigris.org/faq.html#binary-files</a> to see how does subversion handles binary files.</p>
<p>When a file consists of binary data, it&#8217;s often difficult or impossible to merge two sets of changes made in parallel by different users. For this reason, Subversion 1.2 and later offers a feature known as locking, often known as “reserved checkouts” in other version control systems.</p>
<p>Once a file is locked by an user, another user can not commit it.</p>
<p><strong>svn:needs-lock property</strong><br />
If the property is attached to a file (the value is irrelevant), then the file will have read-only permissions. When the user locks the file and receives a lock token, the file becomes read-write. When the lock is released—either explicitly unlocked, or released via commit—the file returns to read-only again.</p>
<p>Binary files must have this property, otherwise it can not be committed. the value of this property is irrelevant.</p>
<p>Look at <a href="http://subversion.tigris.org/faq.html#binary-files">http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html</a> it explains SVN locking model</p>
<p><strong>Solution</strong><br />
Add the svn:needs-lock property to the file in question. The SVN property can be set using SVN client like tortoise or using SVN propset  sub command from command prompt.</p>
<p><code>svn propset svn:needs-lock '*' file name</code></p>
<p>For more information on SVN properties, look at <a href="http://subversion.tigris.org/faq.html#binary-files">http://svnbook.red-bean.com/en/1.4/svn.advanced.props.html</a></p>
<p>That&#8217;s it, try to commit it.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/solveme.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/solveme.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/solveme.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/solveme.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/solveme.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/solveme.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/solveme.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/solveme.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/solveme.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/solveme.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=solveme.wordpress.com&blog=4112608&post=53&subd=solveme&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://solveme.wordpress.com/2009/01/22/svn-commit-failed-property-svn-needs-lock-needed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/66e04160aa66aeb25c4340959c5f2995?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">daringtakers</media:title>
		</media:content>
	</item>
	</channel>
</rss>