Mercurial > hg
view tests/failfilemerge.py @ 30012:60a66c79125f
revlog: document high frequency of code execution
Recording my notes while working on performance optimization.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 24 Aug 2016 20:18:58 -0700 |
parents | a7f8939641aa |
children | 318a24b52eeb |
line wrap: on
line source
# 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)