Mercurial > hg-stable
diff tests/failfilemerge.py @ 27988:61f4d59e9a0b stable
rebase: update working directory when aborting (issue5084)
author | timeless <timeless@mozdev.org> |
---|---|
date | Fri, 05 Feb 2016 01:56:46 +0000 |
parents | |
children | 424c1632fffb |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/failfilemerge.py Fri Feb 05 01:56:46 2016 +0000 @@ -0,0 +1,18 @@ +# extension to emulate interupting filemerge._filemerge + +from __future__ import absolute_import + +from mercurial import ( + filemerge, + extensions, + error, +) + +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)