equal
deleted
inserted
replaced
23 from . import ( |
23 from . import ( |
24 connectionpool, |
24 connectionpool, |
25 constants, |
25 constants, |
26 contentstore, |
26 contentstore, |
27 datapack, |
27 datapack, |
28 extutil, |
|
29 fileserverclient, |
28 fileserverclient, |
30 historypack, |
29 historypack, |
31 metadatastore, |
30 metadatastore, |
32 remotefilectx, |
31 remotefilectx, |
33 remotefilelog, |
32 remotefilelog, |
197 cmd = [_hgexecutable(), '-R', repo.origroot, 'prefetch'] |
196 cmd = [_hgexecutable(), '-R', repo.origroot, 'prefetch'] |
198 if repack: |
197 if repack: |
199 cmd.append('--repack') |
198 cmd.append('--repack') |
200 if revs: |
199 if revs: |
201 cmd += ['-r', revs] |
200 cmd += ['-r', revs] |
202 extutil.runbgcommand(cmd, encoding.environ) |
201 procutil.runbgcommand(cmd, encoding.environ) |
203 |
202 |
204 def prefetch(self, revs, base=None, pats=None, opts=None): |
203 def prefetch(self, revs, base=None, pats=None, opts=None): |
205 """Prefetches all the necessary file revisions for the given revs |
204 """Prefetches all the necessary file revisions for the given revs |
206 Optionally runs repack in background |
205 Optionally runs repack in background |
207 """ |
206 """ |