--- a/mercurial/filemerge.py Fri Oct 06 06:48:43 2017 -0700 +++ b/mercurial/filemerge.py Fri Oct 06 06:48:43 2017 -0700 @@ -739,6 +739,7 @@ if r: if onfailure: ui.warn(onfailure % fd) + _onfilemergefailure(ui) return True, r, deleted finally: