Mercurial > hg
view tests/failfilemerge.py @ 50476:2b2284cf949b
store: only access is_volatile information through the file object
This make sure other code only access this information through the proper API,
and it prepare for store entries to be able to agregate multiple files.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 15 May 2023 08:57:45 +0200 |
parents | 6000f5b25c9b |
children |
line wrap: on
line source
# extension to emulate interrupting filemerge._filemerge from mercurial import ( error, extensions, filemerge, ) def failfilemerge(*args, **kwargs): raise error.Abort(b"^C") def extsetup(ui): extensions.wrapfunction(filemerge, 'filemerge', failfilemerge)