def update_context(self):
<EOL>super(BzrRepo, self).update_context()<EOL>if self.__dict__.get('<STR_LIT>'):<EOL><INDENT>environment = self.context.options.setdefault('<STR_LIT>', {})<EOL>environment.setdefault('<STR_LIT>', self.author.combined)<EOL><DEDENT>
Make sure Bazaar respects the configured author.

This method first calls :func:`.Repository.update_context()` and then
it sets the ``$BZR_EMAIL`` environment variable based on the value of
:attr:`~Repository.author` (but only if :attr:`~Repository.author` was
set by the caller).

This is a workaround for a weird behavior of Bazaar that I've observed
when running under Python 2.6: The ``bzr commit --author`` command line
option is documented but it doesn't prevent Bazaar from nevertheless
reporting the following error::

 bzr: ERROR: Unable to determine your name.
 Please, set your name with the 'whoami' command.
 E.g. bzr whoami "Your Name <name@example.com>"