Mercurial > hg
comparison hgext/blackbox.py @ 32412:043948c84647
devel: update blackbox to use default-date
Blackbox now obeys the 'devel.default-date' option. As a side effect we can
delete the mock for blackblox related tests.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Tue, 16 May 2017 18:36:08 +0200 |
parents | 46ba2cdda476 |
children | 7dc090faa8a4 |
comparison
equal
deleted
inserted
replaced
32411:08d02c1d7e67 | 32412:043948c84647 |
---|---|
169 if ui._bbinlog: | 169 if ui._bbinlog: |
170 # recursion guard | 170 # recursion guard |
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:] |
178 rev = '(unknown)' | 179 rev = '(unknown)' |
179 changed = '' | 180 changed = '' |