Mercurial > public > mercurial-scm > hg-stable
diff hgext/journal.py @ 37123: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 | f0b6fbea00cf |
children | 9954d0e2ad00 |
line wrap: on
line diff
--- a/hgext/journal.py Sat Mar 24 15:09:33 2018 +0900 +++ b/hgext/journal.py Sat Mar 24 15:10:51 2018 +0900 @@ -38,6 +38,7 @@ ) from mercurial.utils import ( dateutil, + procutil, stringutil, ) @@ -255,7 +256,7 @@ _lockref = None def __init__(self, repo): - self.user = util.getuser() + self.user = procutil.getuser() self.ui = repo.ui self.vfs = repo.vfs @@ -272,7 +273,7 @@ @property def command(self): commandstr = ' '.join( - map(util.shellquote, journalstorage._currentcommand)) + map(procutil.shellquote, journalstorage._currentcommand)) if '\n' in commandstr: # truncate multi-line commands commandstr = commandstr.partition('\n')[0] + ' ...'