mercurial/commands.py
changeset 37123 a8a902d7176e
parent 37116 704932ef8913
child 37128 6f570c501e3e
--- a/mercurial/commands.py	Sat Mar 24 15:09:33 2018 +0900
+++ b/mercurial/commands.py	Sat Mar 24 15:10:51 2018 +0900
@@ -63,6 +63,7 @@
 )
 from .utils import (
     dateutil,
+    procutil,
     stringutil,
 )
 
@@ -2316,9 +2317,9 @@
                 repo.vfs.write('graftstate', ''.join(nodelines))
                 extra = ''
                 if opts.get('user'):
-                    extra += ' --user %s' % util.shellquote(opts['user'])
+                    extra += ' --user %s' % procutil.shellquote(opts['user'])
                 if opts.get('date'):
-                    extra += ' --date %s' % util.shellquote(opts['date'])
+                    extra += ' --date %s' % procutil.shellquote(opts['date'])
                 if opts.get('log'):
                     extra += ' --log'
                 hint=_("use 'hg resolve' and 'hg graft --continue%s'") % extra