comparison tests/fakepatchtime.py @ 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 f624b0e69105
children 9a75619776ca
comparison
equal deleted inserted replaced
34771:28b7034a916a 34772:7be2f229285b
4 from __future__ import absolute_import 4 from __future__ import absolute_import
5 5
6 from mercurial import ( 6 from mercurial import (
7 extensions, 7 extensions,
8 patch as patchmod, 8 patch as patchmod,
9 registrar,
9 util, 10 util,
11 )
12
13 configtable = {}
14 configitem = registrar.configitem(configtable)
15
16 configitem('fakepatchtime', 'fakenow',
17 default=None,
10 ) 18 )
11 19
12 def internalpatch(orig, ui, repo, patchobj, strip, 20 def internalpatch(orig, ui, repo, patchobj, strip,
13 prefix='', files=None, 21 prefix='', files=None,
14 eolmode='strict', similarity=0): 22 eolmode='strict', similarity=0):