Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 2743:a31f0f2997e9
import: switch from application/x-patch to text/x-diff
christian ebert says his mailer was broken.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Mon, 31 Jul 2006 12:02:13 -0700 |
parents | ae5ce3454ef5 |
children | 6c2c10cedf7a |
comparison
equal
deleted
inserted
replaced
2742:2f13f8d3fe80 | 2743:a31f0f2997e9 |
---|---|
1775 ui.debug('Subject: %s\n' % message) | 1775 ui.debug('Subject: %s\n' % message) |
1776 user = msg['From'] | 1776 user = msg['From'] |
1777 if user: | 1777 if user: |
1778 ui.debug('From: %s\n' % user) | 1778 ui.debug('From: %s\n' % user) |
1779 diffs_seen = 0 | 1779 diffs_seen = 0 |
1780 ok_types = ('application/x-patch', 'text/plain', 'text/x-patch') | 1780 ok_types = ('text/plain', 'text/x-diff', 'text/x-patch') |
1781 for part in msg.walk(): | 1781 for part in msg.walk(): |
1782 content_type = part.get_content_type() | 1782 content_type = part.get_content_type() |
1783 ui.debug('Content-Type: %s\n' % content_type) | 1783 ui.debug('Content-Type: %s\n' % content_type) |
1784 if content_type not in ok_types: | 1784 if content_type not in ok_types: |
1785 continue | 1785 continue |