Mercurial > hg
view tests/failfilemerge.py @ 41459:5a4d2ab7b55c stable
Added tag 4.9 for changeset 83377b4b4ae0
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Fri, 01 Feb 2019 13:44:07 -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)