##// END OF EJS Templates
patchbomb: build patch texts by _getpatchmsgs()...
Yuya Nishihara -
r31185:bbb5d2aa default
parent child Browse files
Show More
@@ -340,7 +340,7 b' def _makeintro(repo, sender, patches, **'
340 opts.get('test'))
340 opts.get('test'))
341 return (msg, subj, diffstat)
341 return (msg, subj, diffstat)
342
342
343 def _getpatchmsgs(repo, sender, patches, patchnames=None, **opts):
343 def _getpatchmsgs(repo, sender, revs, patchnames=None, **opts):
344 """return a list of emails from a list of patches
344 """return a list of emails from a list of patches
345
345
346 This involves introduction message creation if necessary.
346 This involves introduction message creation if necessary.
@@ -349,6 +349,7 b' def _getpatchmsgs(repo, sender, patches,'
349 """
349 """
350 ui = repo.ui
350 ui = repo.ui
351 _charsets = mail._charsets(ui)
351 _charsets = mail._charsets(ui)
352 patches = list(_getpatches(repo, revs, **opts))
352 msgs = []
353 msgs = []
353
354
354 ui.write(_('this patch series consists of %d patches.\n\n')
355 ui.write(_('this patch series consists of %d patches.\n\n')
@@ -597,8 +598,7 b' def email(ui, repo, *revs, **opts):'
597 bundleopts.pop('bundle', None) # already processed
598 bundleopts.pop('bundle', None) # already processed
598 msgs = _getbundlemsgs(repo, sender, bundledata, **bundleopts)
599 msgs = _getbundlemsgs(repo, sender, bundledata, **bundleopts)
599 else:
600 else:
600 _patches = list(_getpatches(repo, revs, **opts))
601 msgs = _getpatchmsgs(repo, sender, revs, **opts)
601 msgs = _getpatchmsgs(repo, sender, _patches, **opts)
602
602
603 showaddrs = []
603 showaddrs = []
604
604
General Comments 0
You need to be logged in to leave comments. Login now