##// END OF EJS Templates
devel: update blackbox to use default-date...
Boris Feld -
r32412:043948c8 default
parent child Browse files
Show More
@@ -171,7 +171,8 b' def wrapui(ui):'
171 return
171 return
172 try:
172 try:
173 ui._bbinlog = True
173 ui._bbinlog = True
174 date = util.datestr(None, '%Y/%m/%d %H:%M:%S')
174 default = self.configdate('devel', 'default-date')
175 date = util.datestr(default, '%Y/%m/%d %H:%M:%S')
175 user = util.getuser()
176 user = util.getuser()
176 pid = '%d' % util.getpid()
177 pid = '%d' % util.getpid()
177 formattedmsg = msg[0] % msg[1:]
178 formattedmsg = msg[0] % msg[1:]
@@ -3,8 +3,7 b' from mercurial import ('
3 util,
3 util,
4 )
4 )
5
5
6 def makedate():
6 # XXX: we should probably offer a devel option to do this in blackbox directly
7 return 0, 0
8 def getuser():
7 def getuser():
9 return 'bob'
8 return 'bob'
10 def getpid():
9 def getpid():
@@ -12,6 +11,5 b' def getpid():'
12
11
13 # mock the date and user apis so the output is always the same
12 # mock the date and user apis so the output is always the same
14 def uisetup(ui):
13 def uisetup(ui):
15 util.makedate = makedate
16 util.getuser = getuser
14 util.getuser = getuser
17 util.getpid = getpid
15 util.getpid = getpid
General Comments 0
You need to be logged in to leave comments. Login now