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.
--- 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' %