diff -r db366ec8d0a4 -r edcb56991afe mercurial/patch.py --- a/mercurial/patch.py Sat Feb 07 18:46:13 2009 +0100 +++ b/mercurial/patch.py Sat Feb 07 23:29:12 2009 +0100 @@ -1137,7 +1137,7 @@ try: return internalpatch(patchname, ui, strip, cwd, files) except NoHunks: - patcher = util.find_exe('gpatch') or util.find_exe('patch') + patcher = util.find_exe('gpatch') or util.find_exe('patch') or 'patch' ui.debug(_('no valid hunks found; trying with %r instead\n') % patcher) if util.needbinarypatch():