Show More
@@ -430,8 +430,12 b' def _shelvecreatedcommit(repo, node, nam' | |||||
430 | shelvedfile(repo, name, 'shelve').writeinfo(info) |
|
430 | shelvedfile(repo, name, 'shelve').writeinfo(info) | |
431 | bases = list(mutableancestors(repo[node])) |
|
431 | bases = list(mutableancestors(repo[node])) | |
432 | shelvedfile(repo, name, 'hg').writebundle(bases, node) |
|
432 | shelvedfile(repo, name, 'hg').writebundle(bases, node) | |
|
433 | # Create a matcher so that prefetch doesn't attempt to fetch the entire | |||
|
434 | # repository pointlessly. | |||
|
435 | match = scmutil.matchfiles(repo, repo[node].files()) | |||
433 | with shelvedfile(repo, name, patchextension).opener('wb') as fp: |
|
436 | with shelvedfile(repo, name, patchextension).opener('wb') as fp: | |
434 |
cmdutil.exportfile(repo, [node], fp, opts=mdiff.diffopts(git=True) |
|
437 | cmdutil.exportfile(repo, [node], fp, opts=mdiff.diffopts(git=True), | |
|
438 | match=match) | |||
435 |
|
439 | |||
436 | def _includeunknownfiles(repo, pats, opts, extra): |
|
440 | def _includeunknownfiles(repo, pats, opts, extra): | |
437 | s = repo.status(match=scmutil.match(repo[None], pats, opts), |
|
441 | s = repo.status(match=scmutil.match(repo[None], pats, opts), |
General Comments 0
You need to be logged in to leave comments.
Login now