hgext/journal.py
changeset 37120 a8a902d7176e
parent 37084 f0b6fbea00cf
child 37318 9954d0e2ad00
--- 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] + ' ...'