Mercurial > hg > mercurial-crew-with-dirclash
changeset 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 | 0bcecf7d45b1 |
children | 0b7206a65325 |
files | mercurial/commands.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -1751,7 +1751,7 @@ def import_(ui, repo, patch1, *patches, 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)