changeset 34772:7be2f229285b

configitems: register the test 'fakepatchtime.fakenow' config
author Boris Feld <boris.feld@octobus.net>
date Sat, 14 Oct 2017 00:16:12 +0200
parents 28b7034a916a
children 607085aa4d67
files tests/fakepatchtime.py
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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):