tests/fakepatchtime.py
changeset 34772 7be2f229285b
parent 27284 f624b0e69105
child 36325 9a75619776ca
--- 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):