<?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>Cherkf&#039;s Blog</title>
	<atom:link href="http://cherkf.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://cherkf.wordpress.com</link>
	<description>Pony-build progress day after day...</description>
	<lastBuildDate>Mon, 12 Apr 2010 23:08:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='cherkf.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Cherkf&#039;s Blog</title>
		<link>http://cherkf.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://cherkf.wordpress.com/osd.xml" title="Cherkf&#039;s Blog" />
	<atom:link rel='hub' href='http://cherkf.wordpress.com/?pushpress=hub'/>
		<item>
		<title>More Testing</title>
		<link>http://cherkf.wordpress.com/2010/04/12/more-testing/</link>
		<comments>http://cherkf.wordpress.com/2010/04/12/more-testing/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 23:08:06 +0000</pubDate>
		<dc:creator>cherkf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cherkf.wordpress.com/?p=96</guid>
		<description><![CDATA[I have fixed the test for hg branches. Since the HgClone clones automatically all branches, I cloned then tried switching to the last branch/revision using Hg checkout and checked for the existence of the files that are only on that branch. If the branch wasn&#8217;t cloned it will give the following output: C:\Users\Fatima\pony-build-hg-test&#62;hg branches extrabranch [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cherkf.wordpress.com&amp;blog=11194861&amp;post=96&amp;subd=cherkf&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have fixed the test for hg branches. Since the HgClone clones automatically all branches, I cloned then tried switching to the last branch/revision using Hg checkout and checked for the existence of the files that are only on that branch. If the branch wasn&#8217;t cloned it will give the following  output: </p>
<p>C:\Users\Fatima\pony-build-hg-test&gt;hg branches<br />
extrabranch                    7:1d4537588c4c<br />
default                        2:949a4d660f2e (inactive)</p>
<p>C:\Users\Fatima\pony-build-hg-test&gt;hg checkout fatima<br />
<strong>abort: unknown revision &#8216;fatima&#8217;!</strong></p>
<p>I have create a new branch f_master and added the test to it :<br />
<a href="http://github.com/cherkf/pony-build/blob/f_master/client/test_client/test_hg_client.py">http://github.com/cherkf/pony-build/blob/f_master/client/test_client/test_hg_client.py</a></p>
<p>Next, I am trying to figure out how to test the RSS feed to all branches <a href="http://github.com/ctb/pony-build/blob/master/pony_build/rss.py">http://github.com/ctb/pony-build/blob/master/pony_build/rss.py</a></p>
<p>The RSS feed that pony-build have are pushed to the &#8220;Pubsubhubbub&#8221; server. The hub from the PubsubHubbub fetches the published feed and multicasts the new/modified content out to all registered subscribers.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cherkf.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cherkf.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cherkf.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cherkf.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cherkf.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cherkf.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cherkf.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cherkf.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cherkf.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cherkf.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cherkf.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cherkf.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cherkf.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cherkf.wordpress.com/96/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cherkf.wordpress.com&amp;blog=11194861&amp;post=96&amp;subd=cherkf&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cherkf.wordpress.com/2010/04/12/more-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/430ebebe5278294192714c8323c8ab39?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cherkf</media:title>
		</media:content>
	</item>
		<item>
		<title>Testing</title>
		<link>http://cherkf.wordpress.com/2010/03/29/testing/</link>
		<comments>http://cherkf.wordpress.com/2010/03/29/testing/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 18:58:32 +0000</pubDate>
		<dc:creator>cherkf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cherkf.wordpress.com/?p=84</guid>
		<description><![CDATA[This week, I have learned how to run tests on Pony-build using the nosetests script. I had to download the nose package and make sure that the nosetests is added to the path in the environment variables. Running tests then become as easy as typing &#8220;nosetests&#8221; once in the right directory or &#8220;nosetests + name [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cherkf.wordpress.com&amp;blog=11194861&amp;post=84&amp;subd=cherkf&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This week, I have learned how to run tests on Pony-build using the nosetests script. I had to download the nose package and make sure that the nosetests is added to the path in the environment variables. Running tests then become as easy as typing  &#8220;nosetests&#8221; once in the right directory or &#8220;nosetests + name of the test file&#8221; to run that specific test.<br />
My objective this week, was to write a test for branches other than default. </p>
<p>When cloning a repository in mercurial, the working directory is updated to the tip, which is the most recent changeset /commit in the repo. So it actually doesn&#8217;t matter in which branch we currently are , since the clone will happen in the branch, committed to last.</p>
<p><strong>Hg identify prints a summary of the current state of the repository</strong><br />
C:\Users\Fatima\pony-build-hg-test&gt;hg identify<br />
1d4537588c4c (extrabranch) tip<br />
<strong> Switched to the default branch</strong><br />
C:\Users\Fatima\pony-build-hg-test&gt;hg update default<br />
resolving manifests<br />
removing test3.txt<br />
removing test4.py<br />
getting test1<br />
1 files updated, 0 files merged, 2 files removed, 0 files unresolv</p>
<p>C:\Users\Fatima\pony-build-hg-test&gt;hg identify<br />
949a4d660f2e<br />
<strong><br />
Hg tip to show the most recent changeset in the repository. We are still in the Default branch:</strong><br />
C:\Users\Fatima\pony-build-hg-test&gt;hg tip<br />
changeset:   7:1d4537588c4c<br />
branch:      extrabranch<br />
tag:         tip<br />
user:        Fatima Cherkaoui<br />
date:        Mon Mar 15 18:52:04 2010 -0500<br />
files:       test1<br />
description:<br />
test1</p>
<p><strong>&#8220;Hg Clone&#8221; clones all branches automatically and points to the default branch.</strong><br />
C:\Users\Fatima\pony-build-hg-test&gt;cd pony-build-hg-test</p>
<p>C:\Users\Fatima\pony-build-hg-test\pony-build-hg-test&gt;ls<br />
test1  test2</p>
<p>C:\Users\Fatima\pony-build-hg-test\pony-build-hg-test&gt;hg branch<br />
<strong>default</strong></p>
<p>C:\Users\Fatima\pony-build-hg-test\pony-build-hg-test&gt;hg branches<br />
<strong>extrabranch                    7:1d4537588c4c<br />
default                        2:949a4d660f2e (inactive)</strong></p>
<p><strong>So if we are in branch other than default we can:<br />
&#8212;&gt;clone then update to that branch: hg clone and hg update branchname<br />
&#8212;&gt; clone directly to the branch and/or revision : hg clone -r branchname</strong></p>
<p>C:\Users\Fatima\pony-build-hg-test&gt;hg clone http://bitbucket.org/cherkf/pony-bu<br />
ld-hg-test/ -r extrabranch<br />
destination directory: pony-build-hg-test<br />
requesting all changes<br />
adding changesets<br />
adding manifests<br />
adding file changes<br />
added 8 changesets with 7 changes to 4 files<br />
updating to branch extrabranch<br />
4 files updated, 0 files merged, 0 files removed, 0 files unresolved</p>
<p>C:\Users\Fatima\pony-build-hg-test&gt;cd pony-build-hg-test</p>
<p>C:\Users\Fatima\pony-build-hg-test\pony-build-hg-test&gt;hg branch<br />
<strong>extrabranch</strong></p>
<p>C:\Users\Fatima\pony-build-hg-test\pony-build-hg-test&gt;hg branches<br />
extrabranch                    7:1d4537588c4c<br />
default                        2:949a4d660f2e (inactive)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cherkf.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cherkf.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cherkf.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cherkf.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cherkf.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cherkf.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cherkf.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cherkf.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cherkf.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cherkf.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cherkf.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cherkf.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cherkf.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cherkf.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cherkf.wordpress.com&amp;blog=11194861&amp;post=84&amp;subd=cherkf&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cherkf.wordpress.com/2010/03/29/testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/430ebebe5278294192714c8323c8ab39?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cherkf</media:title>
		</media:content>
	</item>
		<item>
		<title>More on Named Branches</title>
		<link>http://cherkf.wordpress.com/2010/03/20/more-on-named-branches/</link>
		<comments>http://cherkf.wordpress.com/2010/03/20/more-on-named-branches/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 18:36:08 +0000</pubDate>
		<dc:creator>cherkf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cherkf.wordpress.com/?p=78</guid>
		<description><![CDATA[In my named branch extrabranch, I cloned the coverage package. C:\Users\Fatima\pony-build-hg-test&#62;hg branch extrabranch C:\Users\Fatima\pony-build-hg-test&#62;ls mercurial-repo test1 test2 test3.txt test4.py C:\Users\Fatima\pony-build-hg-test&#62;hg clone http://bitbucket.org/ned/coveragepy/ destination directory: coveragepy requesting all changes adding changesets adding manifests adding file changes added 762 changesets with 1904 changes to 241 files updating to branch default 203 files updated, 0 files merged, 0 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cherkf.wordpress.com&amp;blog=11194861&amp;post=78&amp;subd=cherkf&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>In my named branch extrabranch, I cloned the coverage package.<br />
</strong><br />
C:\Users\Fatima\pony-build-hg-test&gt;hg branch extrabranch<br />
C:\Users\Fatima\pony-build-hg-test&gt;ls<br />
mercurial-repo  test1  test2  test3.txt  test4.py<br />
C:\Users\Fatima\pony-build-hg-test&gt;hg clone http://bitbucket.org/ned/coveragepy/<br />
destination directory: coveragepy<br />
requesting all changes<br />
adding changesets<br />
adding manifests<br />
adding file changes<br />
added 762 changesets with 1904 changes to 241 files<br />
updating to branch default<br />
203 files updated, 0 files merged, 0 files removed, 0 files unresolved</p>
<p><strong>Checked if the package is there :</strong><br />
C:\Users\Fatima\pony-build-hg-test&gt;ls<br />
<strong>coveragepy</strong>  mercurial-repo  test1  test2  test3.txt  test4.py<br />
<strong>And if we are still in the same branch</strong><br />
C:\Users\Fatima\pony-build-hg-test&gt;hg branch<br />
extrabranch</p>
<p><strong>Now switched to the default branch</strong><br />
C:\Users\Fatima\pony-build-hg-test&gt;hg update default<br />
resolving manifests<br />
removing test3.txt<br />
removing test4.py<br />
getting test1<br />
1 files updated, 0 files merged, 2 files removed, 0 files unresolved</p>
<p>C:\Users\Fatima\pony-build-hg-test&gt;hg branch<br />
default</p>
<p><strong>The package is there.</strong><br />
C:\Users\Fatima\pony-build-hg-test&gt;ls<br />
<strong>coveragepy</strong>  mercurial-repo  test1  test2</p>
<p><strong>Hg status doesn&#8217;t show any file added, so cannot commit or push.</strong><br />
C:\Users\Fatima\pony-build-hg-test&gt;hg status<br />
C:\Users\Fatima\pony-build-hg-test&gt;hg commit<br />
nothing changed</p>
<p>C:\Users\Fatima\pony-build-hg-test&gt;hg push<br />
real URL is https://bitbucket.org/cherkf/pony-build-hg-test/<br />
pushing to https://cherkf@bitbucket.org/cherkf/pony-build-hg-test<br />
searching for changes<br />
no changes found<br />
<strong><br />
To fetch the two branches in hg, we need to hg Merge then hg commit.<br />
In the default branch,I used the -P extension to show a preview of the merge before performing it</strong></p>
<p>C:\Users\Fatima\pony-build-hg-test&gt;hg merge -P extrabranch<br />
changeset:   3:e2a62a3939f7<br />
branch:      extrabranch<br />
user:        Fatima Cherkaoui<br />
date:        Sat Mar 13 15:48:16 2010 -0600<br />
description:<br />
start a new branch</p>
<p>changeset:   4:d50e059fcd4f<br />
branch:      extrabranch<br />
user:        Fatima Cherkaoui<br />
date:        Sat Mar 13 16:13:14 2010 -0600<br />
files:       test3.txt<br />
description:<br />
&#8216;test3.txt&#8217;</p>
<p>changeset:   5:b7399aa89111<br />
branch:      extrabranch<br />
user:        Fatima Cherkaoui<br />
date:        Sun Mar 14 20:04:40 2010 -0500<br />
files:       test4.py<br />
description:<br />
test4</p>
<p>changeset:   6:356d42d7cd3d<br />
branch:      extrabranch<br />
user:        Fatima Cherkaoui<br />
date:        Mon Mar 15 18:20:30 2010 -0500<br />
files:       test3.txt<br />
description:<br />
test3.txt</p>
<p>changeset:   7:1d4537588c4c<br />
branch:      extrabranch<br />
tag:         tip<br />
user:        Fatima Cherkaoui<br />
date:        Mon Mar 15 18:52:04 2010 -0500<br />
files:       test1<br />
description:<br />
test1</p>
<p><strong><strong>If we want to clone from a specific branch : Hg clone url -r branchName </strong><br />
</strong><br />
C:\Python26&gt;hg clone https://cherkf@bitbucket.org/cherkf/pony-build-hg-test/ -r<br />
default<br />
destination directory: pony-build-hg-test<br />
requesting all changes<br />
adding changesets<br />
adding manifests<br />
adding file changes<br />
added 3 changesets with 3 changes to 2 files<br />
updating to branch default<br />
2 files updated, 0 files merged, 0 files removed, 0 files unresolved<br />
C:\Python26&gt;cd pony-build-hg-test<br />
C:\Python26\pony-build-hg-test&gt;ls<br />
<strong>test1  test2<br />
</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cherkf.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cherkf.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cherkf.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cherkf.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cherkf.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cherkf.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cherkf.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cherkf.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cherkf.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cherkf.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cherkf.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cherkf.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cherkf.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cherkf.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cherkf.wordpress.com&amp;blog=11194861&amp;post=78&amp;subd=cherkf&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cherkf.wordpress.com/2010/03/20/more-on-named-branches/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/430ebebe5278294192714c8323c8ab39?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cherkf</media:title>
		</media:content>
	</item>
		<item>
		<title>Branching in Mercurial</title>
		<link>http://cherkf.wordpress.com/2010/03/16/branching-in-mercurial/</link>
		<comments>http://cherkf.wordpress.com/2010/03/16/branching-in-mercurial/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 00:02:58 +0000</pubDate>
		<dc:creator>cherkf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cherkf.wordpress.com/?p=72</guid>
		<description><![CDATA[This week I have started exploring branching in Mercurial. Branching occurs when a changeset is commited within a single repository or two repositories that were cloned from the same repo. Branching in Mercurial is usually anonymous , but a named branch can be created only within a single repository. I have created a named branch [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cherkf.wordpress.com&amp;blog=11194861&amp;post=72&amp;subd=cherkf&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This week I have started exploring branching in Mercurial.<br />
Branching occurs when a changeset is commited within a single repository or two repositories that were cloned from the same repo.<br />
Branching in Mercurial is usually anonymous , but a named branch can be created only within a single repository.<br />
I have created a named branch called extrabranch: hg branch extrabranch<br />
<strong>C:\Users\Fatima\pony-build-hg-test&gt;hg branches<br />
extrabranch                    5:b7399aa89111<br />
default                        2:949a4d660f2e (inactive)</strong></p>
<p>Now the tip is on the extrabranch and we can check that by typing hg parents:<br />
<strong>C:\Users\Fatima\pony-build-hg-test&gt;hg parents<br />
changeset:   5:b7399aa89111<br />
branch:      extrabranch<br />
tag:         tip<br />
user:        Fatima Cherkaoui<br />
date:        Sun Mar 14 20:04:40 2010 -0500<br />
files:       test4.py</strong><br />
description:<br />
test4</p>
<p>Now if we add or modify any file it will be under the extrabranch.<br />
We can switch between branches using hg update.<br />
<strong>C:\Users\Fatima\pony-build-hg-test&gt;hg update default<br />
resolving manifests<br />
removing test3.txt<br />
removing test4.py<br />
0 files updated, 0 files merged, 2 files removed, 0 files unresolved</p>
<p>C:\Users\Fatima\pony-build-hg-test&gt;ls<br />
coveragepy  mercurial-repo  new  2.py  test1  test2</p>
<p>C:\Users\Fatima\pony-build-hg-test&gt;hg update extrabranch<br />
resolving manifests<br />
getting test3.txt<br />
getting test4.py<br />
2 files updated, 0 files merged, 0 files removed, 0 files unresolved</p>
<p>C:\Users\Fatima\pony-build-hg-test&gt;ls<br />
coveragepy  mercurial-repo  new  2.py  test1  test2  test3.txt  test4.py</strong></p>
<p>When cloning the coverage repo it goes directly to the default branch not the extrabranch as the repo has  different parents.</p>
<p>The next step is to check how to do merges of branches with different parents like it is done in Git (what&#8217;s called &#8220;Octopus merges&#8221;.</p>
<p>Note: I&#8217;m glad we are using Github for our project. Bitbucket link seems to be broken most of the time.<br />
<a href="http://cherkf.files.wordpress.com/2010/03/bitbucketdown.gif"><img src="http://cherkf.files.wordpress.com/2010/03/bitbucketdown.gif?w=300&#038;h=54" alt="" title="bitbucketDown" width="300" height="54" class="alignnone size-medium wp-image-75" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cherkf.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cherkf.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cherkf.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cherkf.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cherkf.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cherkf.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cherkf.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cherkf.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cherkf.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cherkf.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cherkf.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cherkf.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cherkf.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cherkf.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cherkf.wordpress.com&amp;blog=11194861&amp;post=72&amp;subd=cherkf&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cherkf.wordpress.com/2010/03/16/branching-in-mercurial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/430ebebe5278294192714c8323c8ab39?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cherkf</media:title>
		</media:content>

		<media:content url="http://cherkf.files.wordpress.com/2010/03/bitbucketdown.gif?w=300" medium="image">
			<media:title type="html">bitbucketDown</media:title>
		</media:content>
	</item>
		<item>
		<title>Moving on</title>
		<link>http://cherkf.wordpress.com/2010/03/09/moving-on/</link>
		<comments>http://cherkf.wordpress.com/2010/03/09/moving-on/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 00:03:19 +0000</pubDate>
		<dc:creator>cherkf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cherkf.wordpress.com/?p=62</guid>
		<description><![CDATA[Last week I have mentioned the failing tests for the Mock Package. I have checked and made the same updates made to the mock.py here but my test still failed . I then contacted Micheal Foord who explained that the behavior was correct but the test wasn&#8217;t fixed yet and that he will include it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cherkf.wordpress.com&amp;blog=11194861&amp;post=62&amp;subd=cherkf&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Last week I have mentioned the failing tests for the Mock Package.<br />
I have checked and made the same updates made to the mock.py  <a href="http://code.google.com/p/mock/source/diff?spec=svn120&amp;r=119&amp;format=side&amp;path=/trunk/mock.py&amp;old_path=/trunk/mock.py&amp;old=113and">here</a> but my test still failed .</p>
<p>I then contacted Micheal Foord who explained that the behavior was correct but the test wasn&#8217;t fixed yet and that he will include it in the next release. </p>
<p><a href="http://code.google.com/p/mock/source/diff?spec=svn120&amp;r=119&amp;format=side&amp;path=/trunk/mock.py&amp;old_path=/trunk/mock.py&amp;old=113and">http://lists.idyll.org/pipermail/pony-build/2010-March/000148.html</a></p>
<p>Also, I have created a bitbucket account and forked Titus&#8217;s pony-build-hg-test repo to start experimenting.</p>
<p>http://lists.idyll.org/pipermail/pony-build/2010-February/000118.html</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cherkf.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cherkf.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cherkf.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cherkf.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cherkf.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cherkf.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cherkf.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cherkf.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cherkf.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cherkf.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cherkf.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cherkf.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cherkf.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cherkf.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cherkf.wordpress.com&amp;blog=11194861&amp;post=62&amp;subd=cherkf&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cherkf.wordpress.com/2010/03/09/moving-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/430ebebe5278294192714c8323c8ab39?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cherkf</media:title>
		</media:content>
	</item>
		<item>
		<title>Midway Updates</title>
		<link>http://cherkf.wordpress.com/2010/02/28/midway-updates/</link>
		<comments>http://cherkf.wordpress.com/2010/02/28/midway-updates/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 22:04:35 +0000</pubDate>
		<dc:creator>cherkf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cherkf.wordpress.com/?p=60</guid>
		<description><![CDATA[Few months ago,when I first joined Pony-build, I was excited and eager to learn more about this project in particular and open-source in general. I knew my limited experience might make my progress slower than expected but I was determined to learn more no matter what. I couldn&#8217;t join the UCOSP community for the &#8220;Code [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cherkf.wordpress.com&amp;blog=11194861&amp;post=60&amp;subd=cherkf&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Few months ago,when I first joined Pony-build, I was excited and eager to learn more about this project in particular and open-source in general. I knew my limited experience might make my progress slower than expected but I was determined to learn more no matter what.<br />
I couldn&#8217;t join the UCOSP community for the &#8220;Code Sprint&#8221; in Canada; however, I started to communicate with the project lead Titus C. Brown and the rest of the group via Skype to make the initial system set ups. I encountered many problems throughout the process, but Titus was always patient and very helpful.<br />
 Getting familiar with Git and the already written code  took me more than a while. My first build fully worked after few weeks , but when I have started my second one, it took me few hours to get it build and compile which shows the big progress I&#8217;m making.<br />
I have also learned how to ask for help from the rest of the group, who have been ready to lend a hand when needed.<br />
Today, my enthusiasm remains the same and I&#8217;m ready to learn more.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cherkf.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cherkf.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cherkf.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cherkf.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cherkf.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cherkf.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cherkf.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cherkf.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cherkf.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cherkf.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cherkf.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cherkf.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cherkf.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cherkf.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cherkf.wordpress.com&amp;blog=11194861&amp;post=60&amp;subd=cherkf&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cherkf.wordpress.com/2010/02/28/midway-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/430ebebe5278294192714c8323c8ab39?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cherkf</media:title>
		</media:content>
	</item>
		<item>
		<title>This week</title>
		<link>http://cherkf.wordpress.com/2010/02/28/this-week/</link>
		<comments>http://cherkf.wordpress.com/2010/02/28/this-week/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 17:41:58 +0000</pubDate>
		<dc:creator>cherkf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cherkf.wordpress.com/?p=51</guid>
		<description><![CDATA[Build-Mock Step-by-Step This week I have written a build script for the Mock package. This time it was much easier task as I was more familiar with the concept and the code. The mock package uses subversion so I first found the repo_url : http://mock.googlecode.com/svn/trunk/ then checked the SvnCheckout in the pony_client . I&#8217;ve noticed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cherkf.wordpress.com&amp;blog=11194861&amp;post=51&amp;subd=cherkf&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>
<ul>
Build-Mock Step-by-Step</ul>
<p></strong></p>
<p>This week I have written a build script for the Mock package. This time it was much easier task as I was more familiar with the concept and the code. </p>
<p>The mock package uses subversion so I first found the repo_url : http://mock.googlecode.com/svn/trunk/ then checked the SvnCheckout in the pony_client . I&#8217;ve noticed that dirname is not guessed like in HgClone or GitClone but should be given from the beginning as it is  part of the _init parameters.<br />
My build then worked but the tests didn&#8217;t run. </p>
<p>The Error I got was :</p>
<p><strong>command line:['python', 'setup.py', 'test']<br />
no stdout<br />
stderr:<br />
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] &#8230;] or: setup.py &#8211;help [cmd1 cmd2 ...] or: setup.py &#8211;help-commands or: setup.py cmd &#8211;help error: invalid command &#8216;test&#8217;<br />
</strong></p>
<p>To fix it , I checked if the test file exists in the package. My assumption was right there was instead a &#8220;tests&#8221; one. I then replaced test with tests but  it still failed giving me the same error .<br />
I discovered then that the mock package uses &#8220;discover.py&#8221; to run its tests. </p>
<p>This time the tests ran but failed one of them : </p>
<p><strong>&#8230;&#8230;F&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.. ====================================================================== FAIL: testMagicMethodWrapping (tests.testmagicmethods.TestMockingMagicMethods) &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Traceback (most recent call last): File &#8220;c:\users\fatima\appdata\local\temp\tmpwotcmh\mock\tests\testmagicmethods.py&#8221;, line 47, in testMagicMethodWrapping self.assertEqual(inspect.getargspec(mock.__getitem__), inspect.getargspec(f)) AssertionError: ArgSpec(args=['name'], varargs=None, keywords=None, defaults=None) != ArgSpec(args=['self', 'name'], varargs=None, keywords=None, defaults=None) &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Ran 66 tests in 0.077s FAILED (failures=1) </strong></p>
<p><a href="http://lyorn.idyll.org/ctb/pb-dev/p/build-mock/17611/">http://lyorn.idyll.org/ctb/pb-dev/p/build-mock/17611/</a></p>
<p><strong></p>
<ul>
Learning how to deal with branches</ul>
<p></strong></p>
<p>I noticed that when I type &#8220;git branch&#8221; both mkdir and master are listed but  when moving in my directory the main branch changes each time. So I have decided to make it mkdir all over:  &#8220;git branch -m master mkdir&#8221;</p>
<p>I have also changed my default branch to mkdir in github. ( under admin).</p>
<p>When trying to push my build-mock (using the usual add , commit and push) I got a non-fast-forward error.<br />
I then pulled again from ctb repo to the mkdir branch.<br />
I got merging error . The git Status showed me that two files (dbsqlite.py &amp; style.css) that I&#8217;ve never recall opening were modified. The git diff showed that both filed were almost re-written.<br />
I used &#8221; git checkout  &amp; git ls-files -m &#8221; to discard the changes made in my working directory that are not added to the index yet (unstaged changes)</p>
<p>Now when I push &#8220;git push git@github.com:cherkf/pony-build.git mkdir&#8221; the push works, but I still get a non fast-forward error for the master branch .<br />
! [rejected] master -&gt; master (non-fast forward)</p>
<p>I will look more through those small issues the coming days.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cherkf.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cherkf.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cherkf.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cherkf.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cherkf.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cherkf.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cherkf.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cherkf.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cherkf.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cherkf.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cherkf.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cherkf.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cherkf.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cherkf.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cherkf.wordpress.com&amp;blog=11194861&amp;post=51&amp;subd=cherkf&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cherkf.wordpress.com/2010/02/28/this-week/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/430ebebe5278294192714c8323c8ab39?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cherkf</media:title>
		</media:content>
	</item>
		<item>
		<title>Finally!</title>
		<link>http://cherkf.wordpress.com/2010/02/22/finally/</link>
		<comments>http://cherkf.wordpress.com/2010/02/22/finally/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 05:49:23 +0000</pubDate>
		<dc:creator>cherkf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cherkf.wordpress.com/?p=52</guid>
		<description><![CDATA[This week I was still working on getting my build-coverage to work . I had to first fix the hg checkout. With max&#8217;s help, I was able to overcome the assertion error I was getting. My build then worked on Lyorn perfectly. On windows it was giving me a windows error: WindowsError: [Error 2] The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cherkf.wordpress.com&amp;blog=11194861&amp;post=52&amp;subd=cherkf&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This week I was still working on getting my build-coverage to work . I had to first fix the hg checkout. With max&#8217;s help, I was able to overcome the assertion error I was getting. My build then worked on Lyorn perfectly.</p>
<p>On windows it was giving me a windows error: WindowsError: [Error 2] The system cannot find the file specified . To fix it , I have tried the build command directly on my machine:<br />
BuildCommand([python_exe, 'setup.py', 'build_ext', '-i'],name=&#8217;compile&#8217;),</p>
<p>The python_exe was refering to :python 2.6 and that&#8217;s why the setup.py couldn&#8217;t run. Once changed to python , it was able to run using python.exe . But a different error message showed up:<br />
stderr:<br />
&lt;error: Unable to find vcvarsall.bat</p>
<p>I had Visual Studio but had to download the Visual Studio  2008 because other versions of VS aren&#039;t supported by Python 2.6 .<br />
My build then FINALLY worked on windows as well. As Rose would say : &quot;Hooray!&quot;</p>
<div><a href="http://lyorn.idyll.org/ctb/pb-dev/p/coverage/16996/">http://lyorn.idyll.org/ctb/pb-dev/p/coverage/16996/</a></div>
<p>Thanks to both Titus and Rose for their continuous help!<br />
On the other hand, I still have to figure out  why a clean build is not done.  The build doesn&#8217;t work the second time when forcing it to rebuild. The cache_dir doesn&#8217;t get deleted and therefore the build just fail.</p>
<p>I have tried to deleted manually first then rebuild and it worked .I will try to work on this problem more the coming days.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cherkf.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cherkf.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cherkf.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cherkf.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cherkf.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cherkf.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cherkf.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cherkf.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cherkf.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cherkf.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cherkf.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cherkf.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cherkf.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cherkf.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cherkf.wordpress.com&amp;blog=11194861&amp;post=52&amp;subd=cherkf&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cherkf.wordpress.com/2010/02/22/finally/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/430ebebe5278294192714c8323c8ab39?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cherkf</media:title>
		</media:content>
	</item>
		<item>
		<title>Indentation &#8230;</title>
		<link>http://cherkf.wordpress.com/2010/02/16/indentation/</link>
		<comments>http://cherkf.wordpress.com/2010/02/16/indentation/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 01:25:01 +0000</pubDate>
		<dc:creator>cherkf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cherkf.wordpress.com/?p=46</guid>
		<description><![CDATA[Indentation might not be a serious problem, but I&#8217;m mentioning it in my blog because as a beginner in Python it can get very frustrating . Indentation errors are usually due to the use of mix tabs and spaces. To fix my indentation problem I have found: the magical tabnanny &#8220;python -m tabnanny pony_client.py&#8221; http://docs.python.org/library/tabnanny.html [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cherkf.wordpress.com&amp;blog=11194861&amp;post=46&amp;subd=cherkf&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:left;">Indentation might not be a serious problem, but I&#8217;m mentioning it in my blog because as a beginner in Python it can get very frustrating .</p>
<p style="text-align:left;">Indentation errors are usually due to the use of mix tabs and spaces. To fix my indentation problem I have found:</p>
<ul>
<li>the magical <strong>tabnanny</strong> &#8220;python -m tabnanny pony_client.py&#8221; <a title="check it out here" href="http://docs.python.org/library/tabnanny.html" target="_blank">http://docs.python.org/library/tabnanny.html</a></li>
<li>As simple as switching to an IDE:  <strong>Eclipse . </strong>It has the option to convert from tabs to space-tabs and vice versa.</li>
</ul>
<p style="text-align:right;">To be continued&#8230;..</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cherkf.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cherkf.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cherkf.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cherkf.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cherkf.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cherkf.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cherkf.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cherkf.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cherkf.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cherkf.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cherkf.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cherkf.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cherkf.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cherkf.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cherkf.wordpress.com&amp;blog=11194861&amp;post=46&amp;subd=cherkf&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cherkf.wordpress.com/2010/02/16/indentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/430ebebe5278294192714c8323c8ab39?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cherkf</media:title>
		</media:content>
	</item>
		<item>
		<title>Two steps forward &#8230; one step backward</title>
		<link>http://cherkf.wordpress.com/2010/02/15/37/</link>
		<comments>http://cherkf.wordpress.com/2010/02/15/37/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 15:51:51 +0000</pubDate>
		<dc:creator>cherkf</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cherkf.wordpress.com/?p=37</guid>
		<description><![CDATA[The Lyorn issues I was having last week are fixed. I had to reconfigure the ssh and set up a new SSH Key for Lyorn . To generate a new SSH key I simply use the command ssh-keygen -t rsa. I found later, a Putty key generator on my computer that comes with WinSCP I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cherkf.wordpress.com&amp;blog=11194861&amp;post=37&amp;subd=cherkf&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Lyorn issues I was having last week are fixed. I had to reconfigure the ssh and set up a new SSH Key for Lyorn . To generate a new SSH key I simply use the command ssh-keygen -t rsa.  I found later, a Putty key generator on my computer that comes with WinSCP I believe. ( an open source <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  SFTP client and FTP client for Windows.)<br />
Also, I had to use the *** read-only URL**** for the repo.</p>
<p>This week, i was working on HgClone in pony-client. We changed few obvious mistakes during our weekly meeting &#8220;clone&#8221; instead of checkout and the &#8220;cache_dir&#8221;. I was getting an assertion error then , the assert simply shows that the code is working as expected and therefore helps catch any bug.</p>
<p>In other words</p>
<ul>
<li> If the condition  is False, the program is in error; this statement raises an AssertionError exception.</li>
<li> If the condition  is True, the program is correct, this statement does nothing more</li>
</ul>
<p>I discovered also that we can run the python code and ignore the assertion errors  using the -o.</p>
<p>When trying to fix the error, I got first an unbound local error: local variable referenced before assignment, which I believe is given when no value is assigned to the variable.When I have tried to make the variable global , I have started getting indentation errors ,that can get very frustrating :-s , but I&#8217;m working on fixing it.</p>
<p>Some other ideas along the way:</p>
<ul>
<li>Checking the heads &#8216;hg heads&#8217;  the merging them &#8216;hg merge&#8217; before doing any pull . Also the pull should be with the &#8220;update&#8221;. hg pull -u</li>
</ul>
<ul>
<li>Ways to use :</li>
</ul>
<p>&#8216;hg parents&#8217;to check if we have one or more parents then checkout depending on the result.<br />
&#8216;hg -v log filename&#8217; show revision history for a single file</p>
<p><a href="http://www.linuxtopia.org/online_books/programming_books/python_programming/python_ch07s05.html"></a></p>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:105px;width:1px;height:1px;">http://cherkf.wordpress.com/wp-admin/post-new.p</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cherkf.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cherkf.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cherkf.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cherkf.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cherkf.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cherkf.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cherkf.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cherkf.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cherkf.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cherkf.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cherkf.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cherkf.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cherkf.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cherkf.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cherkf.wordpress.com&amp;blog=11194861&amp;post=37&amp;subd=cherkf&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cherkf.wordpress.com/2010/02/15/37/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/430ebebe5278294192714c8323c8ab39?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cherkf</media:title>
		</media:content>
	</item>
	</channel>
</rss>
