/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Aaron Bentley
  • Date: 2007-08-09 20:43:00 UTC
  • mto: (2681.5.3 bzr-mail)
  • mto: This revision was merged to the branch mainline in revision 2736.
  • Revision ID: abentley@panoramicfeedback.com-20070809204300-3ws9e76lusyi2siw
Clean up handling of unknown mail clients

Show diffs side-by-side

added added

removed removed

Lines of Context:
3856
3856
            outfile = open(output, 'wb')
3857
3857
        try:
3858
3858
            branch = Branch.open_containing(from_)[0]
 
3859
            if output is None:
 
3860
                mail_client = branch.get_config().get_mail_client()
3859
3861
            if remember and submit_branch is None:
3860
3862
                raise errors.BzrCommandError(
3861
3863
                    '--remember requires a branch to be specified.')
3931
3933
                else:
3932
3934
                    revision = branch.repository.get_revision(revision_id)
3933
3935
                    subject += revision.message
3934
 
                branch.get_config().get_mail_client().compose(mail_to, subject,
3935
 
                    outfile.getvalue())
 
3936
                mail_client.compose(mail_to, subject, outfile.getvalue())
3936
3937
        finally:
3937
3938
            if output != '-':
3938
3939
                outfile.close()