diff -r b5f56d6c62c4 -r 9a2a481ec3ea mercurial/patch.py --- a/mercurial/patch.py Sat Aug 12 14:15:23 2006 -0700 +++ b/mercurial/patch.py Sat Aug 12 15:41:26 2006 -0700 @@ -242,7 +242,8 @@ files.setdefault(pf, (None, None)) code = fp.close() if code: - raise util.Abort(_("patch command failed: %s") % explain_exit(code)[0]) + raise util.Abort(_("patch command failed: %s") % + util.explain_exit(code)[0]) for gp in gitpatches: files[gp.path] = (gp.op, gp)