Are there any easy TODO's (such as easy-fix or junior jobs)?

Jo Vermeulen jo at lumumba.luc.ac.be
Tue Apr 19 12:20:32 BST 2005


Op 19-apr-05 om 02:08 heeft Martin Pool het volgende geschreven:

> On Mon, 2005-04-18 at 14:38 +0200, Jo Vermeulen wrote:
>> Hello,
>>
>> I would like to contribute some code to bazaar-ng. I am looking for a
>> few "easy" TODO's, in order to become familiar with the codebase.
>> Running "grep -r TODO *" gave me a list of about 180 TODO's :-) A few
>> of these seemed reasonable (e.g. "parse email address out of full
>> username" in cmd_whoami in bzrlib/commands.py), but I have no further
>> clue about them :-)
>
> Feel free to ask.  That particular one is just that there should be say
> "whoami --id" which parses out just the "mbp at sourcefrog.net" part and
> prints that.  The parser for addresses could perhaps also be better.

That's quite easy-to-do with regular expressions, but that may add 
another dependency (the sre module). Don't know if that's ok :-)

>> If someone knows of such an easy fix, please let me know. I am quite a
>> Python newbie, but bazaar-ng seems like a fun project to get started
>> on. I am currently busy working on my Masters thesis, but a little
>> diversion can't hurt ;-)
>
> Here is something that might give you an hour of so of fun: at the
> moment the ignore file processing is based on fnmatch, which is close
> but not quite correct.  For example it matches 'a/b/c' with '*', which
> Unix would not.  Perhaps you could write a better fnmatch that matches
> Unix behavior, and perhaps even has some extensions like '**' to match
> directories.  rsync and zsh globs may be a good guide.  Please include
> some test cases, perhaps as a subroutine in that file.  The actual
> matcher should be separate from the ignore code so it can be reused (or
> perhaps even proposed to replace fnmatch in Python.)

That's indeed a very nice little project :-)

> (I'm reminded of tridge's comment that the muscles of free software are
> procrastinating students. :-)

Lol :-D I'll do my best ;-)

Thanks for your response Martin!

-- 
Jo Vermeulen <jo at lumumba.luc.ac.be>
http://lumumba.luc.ac.be/jo/





More information about the bazaar mailing list