mercurial/patch.py
changeset 10751 440786f7f18b
parent 10749 03225f14c495
child 10818 d14d45fae927
equal deleted inserted replaced
10749:03225f14c495 10751:440786f7f18b
  1318                                  files)
  1318                                  files)
  1319         else:
  1319         else:
  1320             try:
  1320             try:
  1321                 return internalpatch(patchname, ui, strip, cwd, files, eolmode)
  1321                 return internalpatch(patchname, ui, strip, cwd, files, eolmode)
  1322             except NoHunks:
  1322             except NoHunks:
       
  1323                 ui.warn(_('internal patcher failed\n'
       
  1324                           'please report details to '
       
  1325                           'http://mercurial.selenic.com/bts/\n'
       
  1326                           'or mercurial@selenic.com\n'))
  1323                 patcher = (util.find_exe('gpatch') or util.find_exe('patch')
  1327                 patcher = (util.find_exe('gpatch') or util.find_exe('patch')
  1324                            or 'patch')
  1328                            or 'patch')
  1325                 ui.debug('no valid hunks found; trying with %r instead\n' %
  1329                 ui.debug('no valid hunks found; trying with %r instead\n' %
  1326                          patcher)
  1330                          patcher)
  1327                 if util.needbinarypatch():
  1331                 if util.needbinarypatch():