Mercurial > public > mercurial-scm > hg-stable
diff hgext/patchbomb.py @ 5948:597d8402087d
Merge after backout
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri, 25 Jan 2008 16:04:46 -0800 |
parents | 528c986f0162 d0576d065993 |
children | ea77f6f77514 |
line wrap: on
line diff
--- a/hgext/patchbomb.py Fri Jan 25 16:04:32 2008 -0800 +++ b/hgext/patchbomb.py Fri Jan 25 16:04:46 2008 -0800 @@ -417,8 +417,7 @@ fp.close() elif opts.get('mbox'): ui.status('Writing ', m['Subject'], ' ...\n') - fp = open(opts.get('mbox'), - m.has_key('In-Reply-To') and 'ab+' or 'wb+') + fp = open(opts.get('mbox'), 'In-Reply-To' in m and 'ab+' or 'wb+') date = util.datestr(date=start_time, format='%a %b %d %H:%M:%S %Y', timezone=False) fp.write('From %s %s\n' % (sender_addr, date))