Mercurial > public > mercurial-scm > hg
diff 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 |
line wrap: on
line diff
--- a/hgext/blackbox.py Sat Mar 24 15:09:33 2018 +0900 +++ b/hgext/blackbox.py Sat Mar 24 15:10:51 2018 +0900 @@ -49,7 +49,10 @@ ui as uimod, util, ) -from mercurial.utils import dateutil +from mercurial.utils import ( + dateutil, + procutil, +) # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should @@ -166,8 +169,8 @@ ui._bbinlog = True default = self.configdate('devel', 'default-date') date = dateutil.datestr(default, '%Y/%m/%d %H:%M:%S') - user = util.getuser() - pid = '%d' % util.getpid() + user = procutil.getuser() + pid = '%d' % procutil.getpid() formattedmsg = msg[0] % msg[1:] rev = '(unknown)' changed = ''