hgext/remotefilelog/shallowrepo.py
changeset 42842 2c74337e6483
parent 42620 d98ec36be808
child 43076 2372284d9457
--- a/hgext/remotefilelog/shallowrepo.py	Sat Aug 31 14:12:38 2019 +0900
+++ b/hgext/remotefilelog/shallowrepo.py	Wed Aug 28 16:01:16 2019 +0200
@@ -183,7 +183,7 @@
                                                             origctx=origctx)
 
         def backgroundprefetch(self, revs, base=None, repack=False, pats=None,
-                               opts=None):
+                               opts=None, ensurestart=False):
             """Runs prefetch in background with optional repack
             """
             cmd = [procutil.hgexecutable(), '-R', repo.origroot, 'prefetch']
@@ -193,7 +193,8 @@
                 cmd += ['-r', revs]
             # We know this command will find a binary, so don't block
             # on it starting.
-            procutil.runbgcommand(cmd, encoding.environ, ensurestart=False)
+            procutil.runbgcommand(cmd, encoding.environ,
+                                  ensurestart=ensurestart)
 
         def prefetch(self, revs, base=None, pats=None, opts=None):
             """Prefetches all the necessary file revisions for the given revs