# HG changeset patch # User Benoit Boissinot # Date 1269252522 -3600 # Node ID 440786f7f18bfbdc6de5eb313bc71f9426c93011 # Parent 03225f14c4956cd86b07c45838548877382745bd patch: warn when the internal patcher fails hopefully we'll soon fix the remaining failures from the internal patcher, and not use the external one anymore. diff -r 03225f14c495 -r 440786f7f18b mercurial/patch.py --- a/mercurial/patch.py Sat Mar 20 16:57:24 2010 -0500 +++ b/mercurial/patch.py Mon Mar 22 11:08:42 2010 +0100 @@ -1320,6 +1320,10 @@ try: return internalpatch(patchname, ui, strip, cwd, files, eolmode) except NoHunks: + ui.warn(_('internal patcher failed\n' + 'please report details to ' + 'http://mercurial.selenic.com/bts/\n' + 'or mercurial@selenic.com\n')) patcher = (util.find_exe('gpatch') or util.find_exe('patch') or 'patch') ui.debug('no valid hunks found; trying with %r instead\n' %