##// END OF EJS Templates
py3: add b'' prefixes in fakedirstatewritetime.py...
Pulkit Goyal -
r36342:ac04f17b default
parent child Browse files
Show More
@@ -19,7 +19,7 b' from mercurial import ('
19 configtable = {}
19 configtable = {}
20 configitem = registrar.configitem(configtable)
20 configitem = registrar.configitem(configtable)
21
21
22 configitem('fakedirstatewritetime', 'fakenow',
22 configitem(b'fakedirstatewritetime', b'fakenow',
23 default=None,
23 default=None,
24 )
24 )
25
25
@@ -39,7 +39,7 b' def pack_dirstate(fakenow, orig, dmap, c'
39 def fakewrite(ui, func):
39 def fakewrite(ui, func):
40 # fake "now" of 'pack_dirstate' only if it is invoked while 'func'
40 # fake "now" of 'pack_dirstate' only if it is invoked while 'func'
41
41
42 fakenow = ui.config('fakedirstatewritetime', 'fakenow')
42 fakenow = ui.config(b'fakedirstatewritetime', b'fakenow')
43 if not fakenow:
43 if not fakenow:
44 # Execute original one, if fakenow isn't configured. This is
44 # Execute original one, if fakenow isn't configured. This is
45 # useful to prevent subrepos from executing replaced one,
45 # useful to prevent subrepos from executing replaced one,
@@ -49,7 +49,7 b' def fakewrite(ui, func):'
49
49
50 # parsing 'fakenow' in YYYYmmddHHMM format makes comparison between
50 # parsing 'fakenow' in YYYYmmddHHMM format makes comparison between
51 # 'fakenow' value and 'touch -t YYYYmmddHHMM' argument easy
51 # 'fakenow' value and 'touch -t YYYYmmddHHMM' argument easy
52 fakenow = util.parsedate(fakenow, ['%Y%m%d%H%M'])[0]
52 fakenow = util.parsedate(fakenow, [b'%Y%m%d%H%M'])[0]
53
53
54 orig_pack_dirstate = parsers.pack_dirstate
54 orig_pack_dirstate = parsers.pack_dirstate
55 orig_dirstate_getfsnow = dirstate._getfsnow
55 orig_dirstate_getfsnow = dirstate._getfsnow
General Comments 0
You need to be logged in to leave comments. Login now