<?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>Camptocamp Blog &#187; bzr</title>
	<atom:link href="http:///en/blog/tag/bzr/feed" rel="self" type="application/rss+xml" />
	<link>http://www.camptocamp.com/en/blog/</link>
	<description>Camptocamp weblog</description>
	<lastBuildDate>Wed, 01 Feb 2012 21:57:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Resolve conflicts with vimdiff</title>
		<link>http://www.camptocamp.com/en/blog/2009/03/resolve-conflicts-with-vimdiff/</link>
		<comments>http://www.camptocamp.com/en/blog/2009/03/resolve-conflicts-with-vimdiff/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 11:26:08 +0000</pubDate>
		<dc:creator>Marc Fournier</dc:creator>
				<category><![CDATA[Infrastructure Solutions]]></category>
		<category><![CDATA[bzr]]></category>
		<category><![CDATA[puppet]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.camptocamp.com/en/blog/2009/03/resolve-conflicts-with-vimdiff/</guid>
		<description><![CDATA[When several people work on the same set of files, for instance puppet recipes , conflicts happen now and then:
marc@lonquimay:/tmp/puppetmaster$ bzr merge -q
Text conflict in modules/mysql/manifests/classes/server.pp
As every decent machine has vim installed, you are only one step away from resolving these conflicts in a comprehensive and colorful way. Just type:
vimdiff modules/mysql/manifests/classes/server.pp.{THIS,OTHER}
Vim will open both files, [...]]]></description>
			<content:encoded><![CDATA[<p>When several people work on the same set of files, for instance <a href="http://puppet.reductivelabs.com/">puppet recipes</a> , conflicts happen now and then:</p>
<p><code>marc@lonquimay:/tmp/puppetmaster$ bzr merge -q<br />
Text conflict in modules/mysql/manifests/classes/server.pp</code></p>
<p>As every decent machine has <a href="http://vim.wikia.com/wiki/Main_Page">vim</a> installed, you are only one step away from resolving these conflicts in a comprehensive and colorful way. Just type:</p>
<p><code>vimdiff modules/mysql/manifests/classes/server.pp.{THIS,OTHER}</code></p>
<p>Vim will open both files, splitted in the same window:</p>
<p><img src="http://www.camptocamp.com/images/wordpress/uploads/2009/03/vimdiff.png" alt="vimdiff screenshot" /></p>
<p>As usual with splits, you can switch back and forth with <strong>CTRL-W CTRL-W</strong>. Now position the cursor on one of the conflicting lines. Then type <strong>do</strong> to &quot;obtain&quot; the code block from the other file or <strong>dp</strong> to &quot;push&quot; it to the other file. You can of course edit any of the files as usual.</p>
<p>That&#8217;s it, don&#8217;t forget to <code>bzr resolve</code> the conflict !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.camptocamp.com/en/blog/2009/03/resolve-conflicts-with-vimdiff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

