mirror of
https://github.com/facebook/sapling.git
synced 2024-12-29 08:02:24 +03:00
remotefilelog: runshellcommand -> spawndetached
Summary: There seems to be no need to use a shell. Reviewed By: DurhamG Differential Revision: D23124756 fbshipit-source-id: 7de1c23e2325fe88dc4c6a2c90563d06f109ed2f
This commit is contained in:
parent
ffb93ca839
commit
2cdca65aed
@ -16,7 +16,7 @@ from edenscm.mercurial import encoding, error, progress, util, vfs
|
||||
from edenscm.mercurial.i18n import _
|
||||
from edenscm.mercurial.node import nullid, short
|
||||
|
||||
from ..extutil import flock, runshellcommand
|
||||
from ..extutil import flock
|
||||
from . import constants, datapack, historypack, shallowutil
|
||||
|
||||
|
||||
@ -38,11 +38,9 @@ def backgroundrepack(repo, incremental=True):
|
||||
cmd.append("--incremental")
|
||||
msg = _("(running background incremental repack)\n")
|
||||
|
||||
cmd = " ".join(map(util.shellquote, cmd))
|
||||
|
||||
if not repo.ui.quiet:
|
||||
repo.ui.write_err(msg)
|
||||
runshellcommand(cmd, encoding.environ)
|
||||
util.spawndetached(cmd)
|
||||
|
||||
|
||||
def _runrustrepack(ui, packpath, stores, incremental, shared):
|
||||
|
@ -13,7 +13,6 @@ from edenscm.mercurial.i18n import _
|
||||
from edenscm.mercurial.node import hex, nullid, nullrev
|
||||
from edenscm.mercurial.pycompat import iteritems
|
||||
|
||||
from ..extutil import runshellcommand
|
||||
from . import constants, fileserverclient, remotefilectx, remotefilelog, shallowutil
|
||||
from .repack import domaintenancerepack
|
||||
|
||||
@ -125,9 +124,8 @@ def wraprepo(repo):
|
||||
cmd += ["-r", revs]
|
||||
if base:
|
||||
cmd += ["-b", base]
|
||||
cmd = " ".join(map(util.shellquote, cmd))
|
||||
|
||||
runshellcommand(cmd, encoding.environ)
|
||||
util.spawndetached(cmd)
|
||||
|
||||
def prefetch(self, revs, base=None, pats=None, opts=None, matcher=None):
|
||||
"""Prefetches all the necessary file revisions for the given revs
|
||||
|
Loading…
Reference in New Issue
Block a user