Mercurial > hg
view tests/failfilemerge.py @ 42148:e76eb64d7f71 stable
Added signature for changeset 4a8d9ed86475
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Wed, 17 Apr 2019 13:56:10 -0400 |
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)