411 ui.status(_("nothing changed\n")) |
411 ui.status(_("nothing changed\n")) |
412 |
412 |
413 def _shelvecreatedcommit(repo, node, name): |
413 def _shelvecreatedcommit(repo, node, name): |
414 bases = list(mutableancestors(repo[node])) |
414 bases = list(mutableancestors(repo[node])) |
415 shelvedfile(repo, name, 'hg').writebundle(bases, node) |
415 shelvedfile(repo, name, 'hg').writebundle(bases, node) |
416 cmdutil.export(repo, [node], |
416 with shelvedfile(repo, name, patchextension).opener('wb') as fp: |
417 fp=shelvedfile(repo, name, patchextension).opener('wb'), |
417 cmdutil.exportfile(repo, [node], fp, opts=mdiff.diffopts(git=True)) |
418 opts=mdiff.diffopts(git=True)) |
|
419 |
418 |
420 def _includeunknownfiles(repo, pats, opts, extra): |
419 def _includeunknownfiles(repo, pats, opts, extra): |
421 s = repo.status(match=scmutil.match(repo[None], pats, opts), |
420 s = repo.status(match=scmutil.match(repo[None], pats, opts), |
422 unknown=True) |
421 unknown=True) |
423 if s.unknown: |
422 if s.unknown: |