Are there any easy TODO's (such as easy-fix or junior jobs)?
Martin Pool
mbp at sourcefrog.net
Tue Apr 19 01:08:22 BST 2005
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.
> 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.)
(I'm reminded of tridge's comment that the muscles of free software are
procrastinating students. :-)
Hope that helps,
--
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050419/3a0c7b13/attachment.pgp
More information about the bazaar
mailing list