author | Yuya Nishihara <yuya@tcha.org> |
Wed, 28 Sep 2016 20:07:32 +0900 | |
changeset 30035 | 02328b5d775d |
parent 29785 | a7f8939641aa |
child 30342 | 318a24b52eeb |
permissions | -rw-r--r-- |
# extension to emulate interupting filemerge._filemerge from __future__ import absolute_import from mercurial import ( error, extensions, filemerge, ) def failfilemerge(filemergefn, premerge, repo, mynode, orig, fcd, fco, fca, labels=None): raise error.Abort("^C") return filemergefn(premerge, repo, mynode, orig, fcd, fco, fca, labels) def extsetup(ui): extensions.wrapfunction(filemerge, '_filemerge', failfilemerge)