h1

Two steps forward … one step backward

February 15, 2010

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 🙂 SFTP client and FTP client for Windows.)
Also, I had to use the *** read-only URL**** for the repo.

This week, i was working on HgClone in pony-client. We changed few obvious mistakes during our weekly meeting “clone” instead of checkout and the “cache_dir”. I was getting an assertion error then , the assert simply shows that the code is working as expected and therefore helps catch any bug.

In other words

  • If the condition is False, the program is in error; this statement raises an AssertionError exception.
  • If the condition is True, the program is correct, this statement does nothing more

I discovered also that we can run the python code and ignore the assertion errors  using the -o.

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’m working on fixing it.

Some other ideas along the way:

  • Checking the heads ‘hg heads’  the merging them ‘hg merge’ before doing any pull . Also the pull should be with the “update”. hg pull -u
  • Ways to use :

‘hg parents’to check if we have one or more parents then checkout depending on the result.
‘hg -v log filename’ show revision history for a single file

One comment

  1. […] refining the HgClone implementation int he pony-build client. You can follow along on her progress here, which is a great post on never giving up. The following thread all so pertains to her work on […]



Leave a comment