# HG changeset patch # User Boris Feld # Date 1507932972 -7200 # Node ID 7be2f229285b58b5cdf0f8392357bd6d0566dad2 # Parent 28b7034a916a1345bd05283a9f3a942cfb043cd3 configitems: register the test 'fakepatchtime.fakenow' config diff -r 28b7034a916a -r 7be2f229285b tests/fakepatchtime.py --- a/tests/fakepatchtime.py Sat Oct 14 00:15:37 2017 +0200 +++ b/tests/fakepatchtime.py Sat Oct 14 00:16:12 2017 +0200 @@ -6,9 +6,17 @@ from mercurial import ( extensions, patch as patchmod, + registrar, util, ) +configtable = {} +configitem = registrar.configitem(configtable) + +configitem('fakepatchtime', 'fakenow', + default=None, +) + def internalpatch(orig, ui, repo, patchobj, strip, prefix='', files=None, eolmode='strict', similarity=0):