<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments for magnetiq.com</title>
	<link>http://magnetiq.com</link>
	<description>Ates Goral's Personal Playground and Project Repository</description>
	<pubDate>Wed, 14 May 2008 07:26:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>Comment on Using Fewer Images by Damjan Mozetič</title>
		<link>http://magnetiq.com/2006/08/27/using-less-images/#comment-21359</link>
		<pubDate>Wed, 30 Jan 2008 15:11:32 +0000</pubDate>
		<guid>http://magnetiq.com/2006/08/27/using-less-images/#comment-21359</guid>
					<description>Nicely explained, congrats.</description>
		<content:encoded><![CDATA[<p>Nicely explained, congrats.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Using Fewer Images by bogota</title>
		<link>http://magnetiq.com/2006/08/27/using-less-images/#comment-21031</link>
		<pubDate>Sat, 26 Jan 2008 21:23:06 +0000</pubDate>
		<guid>http://magnetiq.com/2006/08/27/using-less-images/#comment-21031</guid>
					<description>Great, i never saw a simple explanation of this technique.. Thanks</description>
		<content:encoded><![CDATA[<p>Great, i never saw a simple explanation of this technique.. Thanks
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Generating &#8220;Unified Diff&#8221; Files with ClearCase by Keith Power</title>
		<link>http://magnetiq.com/2007/09/07/generating-unified-diff-files-with-clearcase/#comment-20810</link>
		<pubDate>Thu, 24 Jan 2008 14:32:07 +0000</pubDate>
		<guid>http://magnetiq.com/2007/09/07/generating-unified-diff-files-with-clearcase/#comment-20810</guid>
					<description>Thanks for this, it pointed me in the right direction. I was able to move all changes created in one branch over into another branch by scripting this and using diff and patch. I did it in 2 stages to keep an eye in everything.

NOTE: following scripts were run under cygwin on windows. In particular, they use pushd and popd, easily changed to work under *nix.
They assume DESTINATION variable set.

Stage 1, for each checked out file in source branch copy any non-existent files over to other branch, and check out any files that do exist:

&lt;pre class=&quot;code&quot;&gt;&lt;code&gt;for cofile in `cleartool lsco -cvi -r -s &amp;#124; sed s/\\\\/\\//g`
do
    if [ ! -e &quot;$DESTINATION/$cofile&quot; ]
    then
        echo &quot;File $cofile does not exist at destination, copying&quot;
	cp -r $cofile $DESTINATION/$cofile
	continue
    else	
        echo &quot;File $cofile exists at destination, checking out&quot;
	pushd &quot;$DESTINATION&quot;
	cleartool co -c &quot;Your comment&quot; $cofile
            chmod 666 $DESTINATION/$cofile
	popd
	continue
    fi
done
&lt;/code&gt;&lt;/pre&gt;

Stage 2, for each checked out file in source branch create diff between it and file in dest branch, then patch file in dest branch (new files will have empty patches applie. NOTE: you could easily diff against current ClearCase state using cleartool diff -pred -diff as in original article)

&lt;pre class=&quot;code&quot;&gt;&lt;code&gt;for cofile in `cleartool lsco -cvi -r -s &amp;#124; sed s/\\\\/\\//g`
do
    if [ ! -e &quot;$DESTINATION/$cofile&quot; ]
    then
        echo &quot;ERROR: File $cofile does not exist at destination&quot;
	continue
    else	
        echo &quot;File $cofile exists at destination, diffing and patching&quot;
        chmod 666 $DESTINATION/$cofile
	diff $DESTINATION/$cofile $cofile &amp;#124; patch $DESTINATION/$cofile
	continue
    fi
done
&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Thanks for this, it pointed me in the right direction. I was able to move all changes created in one branch over into another branch by scripting this and using diff and patch. I did it in 2 stages to keep an eye in everything.</p>
<p>NOTE: following scripts were run under cygwin on windows. In particular, they use pushd and popd, easily changed to work under *nix.<br />
They assume DESTINATION variable set.</p>
<p>Stage 1, for each checked out file in source branch copy any non-existent files over to other branch, and check out any files that do exist:</p>
<pre class="code"><code>for cofile in `cleartool lsco -cvi -r -s | sed s/\\/\//g`
do
    if [ ! -e "$DESTINATION/$cofile" ]
    then
        echo "File $cofile does not exist at destination, copying"
	cp -r $cofile $DESTINATION/$cofile
	continue
    else
        echo "File $cofile exists at destination, checking out"
	pushd "$DESTINATION"
	cleartool co -c "Your comment" $cofile
            chmod 666 $DESTINATION/$cofile
	popd
	continue
    fi
done
</code></pre>
<p>Stage 2, for each checked out file in source branch create diff between it and file in dest branch, then patch file in dest branch (new files will have empty patches applie. NOTE: you could easily diff against current ClearCase state using cleartool diff -pred -diff as in original article)</p>
<pre class="code"><code>for cofile in `cleartool lsco -cvi -r -s | sed s/\\/\//g`
do
    if [ ! -e "$DESTINATION/$cofile" ]
    then
        echo "ERROR: File $cofile does not exist at destination"
	continue
    else
        echo "File $cofile exists at destination, diffing and patching"
        chmod 666 $DESTINATION/$cofile
	diff $DESTINATION/$cofile $cofile | patch $DESTINATION/$cofile
	continue
    fi
done
</code></pre>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Using Fewer Images by jessie</title>
		<link>http://magnetiq.com/2006/08/27/using-less-images/#comment-20414</link>
		<pubDate>Thu, 17 Jan 2008 12:23:52 +0000</pubDate>
		<guid>http://magnetiq.com/2006/08/27/using-less-images/#comment-20414</guid>
					<description>i'm a newbie blogger and i'm still learning stuffs like CSS.  I've learned from your post. keep posting tutorials like this and people will come back to your site more often. :-)</description>
		<content:encoded><![CDATA[<p>i&#8217;m a newbie blogger and i&#8217;m still learning stuffs like CSS.  I&#8217;ve learned from your post. keep posting tutorials like this and people will come back to your site more often. <img src='http://magnetiq.com/wpmain/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Using Fewer Images by Free Blog Templates</title>
		<link>http://magnetiq.com/2006/08/27/using-less-images/#comment-19805</link>
		<pubDate>Mon, 07 Jan 2008 14:28:16 +0000</pubDate>
		<guid>http://magnetiq.com/2006/08/27/using-less-images/#comment-19805</guid>
					<description>Amazing technique. I changed one of my buttons as soon as I read your article because my button was noticeably slow to load on hover. Now it's smooth running!

~David</description>
		<content:encoded><![CDATA[<p>Amazing technique. I changed one of my buttons as soon as I read your article because my button was noticeably slow to load on hover. Now it&#8217;s smooth running!</p>
<p>~David
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Using Fewer Images by noclegi</title>
		<link>http://magnetiq.com/2006/08/27/using-less-images/#comment-19339</link>
		<pubDate>Wed, 26 Dec 2007 18:13:30 +0000</pubDate>
		<guid>http://magnetiq.com/2006/08/27/using-less-images/#comment-19339</guid>
					<description>cool</description>
		<content:encoded><![CDATA[<p>cool
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Using Fewer Images by JAson</title>
		<link>http://magnetiq.com/2006/08/27/using-less-images/#comment-19149</link>
		<pubDate>Thu, 20 Dec 2007 08:50:17 +0000</pubDate>
		<guid>http://magnetiq.com/2006/08/27/using-less-images/#comment-19149</guid>
					<description>this is a great way to decrease the potential for javascript conflicts as well...thanks for the simple explanation</description>
		<content:encoded><![CDATA[<p>this is a great way to decrease the potential for javascript conflicts as well&#8230;thanks for the simple explanation
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Using Fewer Images by Leo.锦州 - 周亮的博客 &#187; Blog Archive &#187; 101 个经典CSS技巧和实例</title>
		<link>http://magnetiq.com/2006/08/27/using-less-images/#comment-18910</link>
		<pubDate>Wed, 12 Dec 2007 03:47:56 +0000</pubDate>
		<guid>http://magnetiq.com/2006/08/27/using-less-images/#comment-18910</guid>
					<description>[...] CSS Trick: Using Fewer Images [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] CSS Trick: Using Fewer Images [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Burrito 1.0b - FTP to POP3 Protocol Translator by Burrito 1.0b - FTP to POP3 Protocol Translator &#171; Hot WWW News</title>
		<link>http://magnetiq.com/2007/05/07/burito-10b-ftp-to-pop3-protocol-translator/#comment-16830</link>
		<pubDate>Thu, 08 Nov 2007 16:12:16 +0000</pubDate>
		<guid>http://magnetiq.com/2007/05/07/burito-10b-ftp-to-pop3-protocol-translator/#comment-16830</guid>
					<description>[...] read more &amp;#124; digg story [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] read more | digg story [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on E-Res-Q 1.3 - Mailbox Rescue by Mirko</title>
		<link>http://magnetiq.com/2006/07/10/e-res-q-13/#comment-16753</link>
		<pubDate>Thu, 08 Nov 2007 04:45:21 +0000</pubDate>
		<guid>http://magnetiq.com/2006/07/10/e-res-q-13/#comment-16753</guid>
					<description>Great soft, im waiting for 2.0 version.
if you need a beta tester, contact me.
Cya.
Saludos from Argentina.</description>
		<content:encoded><![CDATA[<p>Great soft, im waiting for 2.0 version.<br />
if you need a beta tester, contact me.<br />
Cya.<br />
Saludos from Argentina.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
