mercurial/patch.py
changeset 14234 600e64004eb5
parent 14231 8abe4db2d162
child 14240 28762bb767dc
equal deleted inserted replaced
14233:659f34b833b9 14234:600e64004eb5
  1189                 printed_file = True
  1189                 printed_file = True
  1190             ui.warn(line + '\n')
  1190             ui.warn(line + '\n')
  1191     code = fp.close()
  1191     code = fp.close()
  1192     if code:
  1192     if code:
  1193         raise PatchError(_("patch command failed: %s") %
  1193         raise PatchError(_("patch command failed: %s") %
  1194                          util.explain_exit(code)[0])
  1194                          util.explainexit(code)[0])
  1195     return fuzz
  1195     return fuzz
  1196 
  1196 
  1197 def internalpatch(patchobj, ui, strip, cwd, files=None, eolmode='strict'):
  1197 def internalpatch(patchobj, ui, strip, cwd, files=None, eolmode='strict'):
  1198     """use builtin patch to apply <patchobj> to the working directory.
  1198     """use builtin patch to apply <patchobj> to the working directory.
  1199     returns whether patch was applied with fuzz factor."""
  1199     returns whether patch was applied with fuzz factor."""