comparison mercurial/mail.py @ 14234:600e64004eb5

rename explain_exit to explainexit
author Adrian Buehlmann <adrian@cadifra.com>
date Fri, 06 May 2011 15:31:09 +0200
parents d8f92c3a17d6
children 4030630fb59c
comparison
equal deleted inserted replaced
14233:659f34b833b9 14234:600e64004eb5
89 fp.write(msg) 89 fp.write(msg)
90 ret = fp.close() 90 ret = fp.close()
91 if ret: 91 if ret:
92 raise util.Abort('%s %s' % ( 92 raise util.Abort('%s %s' % (
93 os.path.basename(program.split(None, 1)[0]), 93 os.path.basename(program.split(None, 1)[0]),
94 util.explain_exit(ret)[0])) 94 util.explainexit(ret)[0]))
95 95
96 def connect(ui): 96 def connect(ui):
97 '''make a mail connection. return a function to send mail. 97 '''make a mail connection. return a function to send mail.
98 call as sendmail(sender, list-of-recipients, msg).''' 98 call as sendmail(sender, list-of-recipients, msg).'''
99 if ui.config('email', 'method', 'smtp') == 'smtp': 99 if ui.config('email', 'method', 'smtp') == 'smtp':