patch: warn when the internal patcher fails
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Mon, 22 Mar 2010 11:08:42 +0100
changeset 10751 440786f7f18b
parent 10749 03225f14c495
child 10752 53313405b54d
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.
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' %