import: allow application/x-patch for funny patch from christian ebert
authorVadim Gelfer <vadim.gelfer@gmail.com>
Sun, 30 Jul 2006 21:24:06 -0700
changeset 2733 42a02b5773d4
parent 2732 0bcecf7d45b1
child 2734 0b7206a65325
import: allow application/x-patch for funny patch from christian ebert
mercurial/commands.py
--- a/mercurial/commands.py	Sat Jul 29 10:27:54 2006 +0200
+++ b/mercurial/commands.py	Sun Jul 30 21:24:06 2006 -0700
@@ -1751,7 +1751,7 @@
             if user:
                 ui.debug('From: %s\n' % user)
             diffs_seen = 0
-            ok_types = ('text/plain', 'text/x-patch')
+            ok_types = ('application/x-patch', 'text/plain', 'text/x-patch')
             for part in msg.walk():
                 content_type = part.get_content_type()
                 ui.debug('Content-Type: %s\n' % content_type)