diff --git a/remotefilelog/repack.py b/remotefilelog/repack.py --- a/remotefilelog/repack.py +++ b/remotefilelog/repack.py @@ -16,6 +16,7 @@ short, ) from mercurial.i18n import _ +from mercurial.utils import procutil from . import ( constants, contentstore, @@ -46,7 +47,7 @@ msg = _("(running background incremental repack)\n") if packsonly: cmd.append('--packsonly') - cmd = ' '.join(map(util.shellquote, cmd)) + cmd = ' '.join(map(procutil.shellquote, cmd)) repo.ui.warn(msg) runshellcommand(cmd, os.environ) diff --git a/remotefilelog/shallowrepo.py b/remotefilelog/shallowrepo.py --- a/remotefilelog/shallowrepo.py +++ b/remotefilelog/shallowrepo.py @@ -9,6 +9,7 @@ from mercurial.i18n import _ from mercurial.node import hex, nullid, nullrev from mercurial import error, localrepo, util, match, scmutil +from mercurial.utils import procutil from . import ( connectionpool, fileserverclient, @@ -194,7 +195,7 @@ cmd.append('--repack') if revs: cmd += ['-r', revs] - cmd = ' '.join(map(util.shellquote, cmd)) + cmd = ' '.join(map(procutil.shellquote, cmd)) runshellcommand(cmd, os.environ)