mercurial/commands.py
changeset 2732 42a02b5773d4
parent 2718 a593813241e5
child 2735 eb1bde9560bc
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