Mercurial > hg
view tests/failfilemerge.py @ 41266:92cf293fd93d
remotefilelog: import Queue on Python 2, and queue on Python 3
Differential Revision: https://phab.mercurial-scm.org/D5599
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 16 Jan 2019 10:56:39 -0500 |
parents | c0ce60459d84 |
children | 2372284d9457 |
line wrap: on
line source
# extension to emulate interrupting filemerge._filemerge from __future__ import absolute_import from mercurial import ( error, extensions, filemerge, ) def failfilemerge(filemergefn, premerge, repo, wctx, 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)