mercurial/commands.py
changeset 2743 a31f0f2997e9
parent 2741 ae5ce3454ef5
child 2755 6c2c10cedf7a
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