comparison mercurial/commands.py @ 2732:42a02b5773d4

import: allow application/x-patch for funny patch from christian ebert
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Sun, 30 Jul 2006 21:24:06 -0700
parents a593813241e5
children eb1bde9560bc
comparison
equal deleted inserted replaced
2731:0bcecf7d45b1 2732:42a02b5773d4
1749 ui.debug('Subject: %s\n' % message) 1749 ui.debug('Subject: %s\n' % message)
1750 user = msg['From'] 1750 user = msg['From']
1751 if user: 1751 if user:
1752 ui.debug('From: %s\n' % user) 1752 ui.debug('From: %s\n' % user)
1753 diffs_seen = 0 1753 diffs_seen = 0
1754 ok_types = ('text/plain', 'text/x-patch') 1754 ok_types = ('application/x-patch', 'text/plain', 'text/x-patch')
1755 for part in msg.walk(): 1755 for part in msg.walk():
1756 content_type = part.get_content_type() 1756 content_type = part.get_content_type()
1757 ui.debug('Content-Type: %s\n' % content_type) 1757 ui.debug('Content-Type: %s\n' % content_type)
1758 if content_type not in ok_types: 1758 if content_type not in ok_types:
1759 continue 1759 continue