Are there any easy TODO's (such as easy-fix or junior jobs)?
Jo Vermeulen
jo at lumumba.luc.ac.be
Tue Apr 19 13:35:14 BST 2005
Op 19-apr-05 om 13:54 heeft Jo Vermeulen het volgende geschreven:
>
> Op 19-apr-05 om 13:48 heeft Andrew Bennetts het volgende geschreven:
>
>> On Tue, Apr 19, 2005 at 01:20:32PM +0200, Jo Vermeulen wrote:
>> [...]
>>>> 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 :-)
>>
>> inventory.py, branch.py and osutils.py already import re, so I think
>> that
>> would be fine.
>
> I just noticed the procedure to calculate the email address is already
> present (with the same name I originally used, user_email() in
> commands.py), using regular expressions too. So I'll use that, and try
> to see how I can add it to the commandline interface.
Ok I have this working now.
$ bzr whoami
Jo Vermeulen <jo at lumumba.luc.ac.be>
$ bzr whoami --email
jo at lumumba.luc.ac.be
$ bzr whoami -e
jo at lumumba.luc.ac.be
One of the tests (test.sh) fails though :-( Is that normal?
How can I create a patch from my local tree, and send these changes to
the list? The branch command doesn't seem to work yet.
Cheers!
--
Jo Vermeulen <jo at lumumba.luc.ac.be>
http://lumumba.luc.ac.be/jo/
More information about the bazaar
mailing list