Mercurial > hg
comparison hgext/blackbox.py @ 37120:a8a902d7176e
procutil: bulk-replace function calls to point to new module
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 24 Mar 2018 15:10:51 +0900 |
parents | c6061cadb400 |
children | e7aa113b14f7 |
comparison
equal
deleted
inserted
replaced
37119:d4a2e0d5d042 | 37120:a8a902d7176e |
---|---|
47 encoding, | 47 encoding, |
48 registrar, | 48 registrar, |
49 ui as uimod, | 49 ui as uimod, |
50 util, | 50 util, |
51 ) | 51 ) |
52 from mercurial.utils import dateutil | 52 from mercurial.utils import ( |
53 dateutil, | |
54 procutil, | |
55 ) | |
53 | 56 |
54 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for | 57 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
55 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | 58 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
56 # be specifying the version(s) of Mercurial they are tested with, or | 59 # be specifying the version(s) of Mercurial they are tested with, or |
57 # leave the attribute unspecified. | 60 # leave the attribute unspecified. |
164 # recursion and failure guard | 167 # recursion and failure guard |
165 return | 168 return |
166 ui._bbinlog = True | 169 ui._bbinlog = True |
167 default = self.configdate('devel', 'default-date') | 170 default = self.configdate('devel', 'default-date') |
168 date = dateutil.datestr(default, '%Y/%m/%d %H:%M:%S') | 171 date = dateutil.datestr(default, '%Y/%m/%d %H:%M:%S') |
169 user = util.getuser() | 172 user = procutil.getuser() |
170 pid = '%d' % util.getpid() | 173 pid = '%d' % procutil.getpid() |
171 formattedmsg = msg[0] % msg[1:] | 174 formattedmsg = msg[0] % msg[1:] |
172 rev = '(unknown)' | 175 rev = '(unknown)' |
173 changed = '' | 176 changed = '' |
174 if repo: | 177 if repo: |
175 ctx = repo[None] | 178 ctx = repo[None] |