##// END OF EJS Templates
add documentation for email command.
Vadim Gelfer -
r1672:07f931af default
parent child Browse files
Show More
@@ -50,6 +50,7 b' from email.MIMEText import MIMEText'
50 from mercurial import commands
50 from mercurial import commands
51 from mercurial import hg
51 from mercurial import hg
52 from mercurial import ui
52 from mercurial import ui
53 from mercurial.i18n import gettext as _
53 import os
54 import os
54 import popen2
55 import popen2
55 import smtplib
56 import smtplib
@@ -86,7 +87,17 b' def diffstat(patch):'
86 except: pass
87 except: pass
87
88
88 def patchbomb(ui, repo, *revs, **opts):
89 def patchbomb(ui, repo, *revs, **opts):
89 '''send changesets as a series of patch emails'''
90 '''send changesets as a series of patch emails
91
92 The series starts with a "[PATCH 0 of N]" introduction, which
93 describes the series as a whole.
94
95 Each patch email has a Subject line of "[PATCH M of N] ...", using
96 the first line of the changeset description as the subject text.
97 The message contains two or three body parts. First, the rest of
98 the changeset description. Next, (optionally) if the diffstat
99 program is installed, the result of running diffstat on the patch.
100 Finally, the patch itself, as generated by "hg export".'''
90 def prompt(prompt, default = None, rest = ': ', empty_ok = False):
101 def prompt(prompt, default = None, rest = ': ', empty_ok = False):
91 if default: prompt += ' [%s]' % default
102 if default: prompt += ' [%s]' % default
92 prompt += rest
103 prompt += rest
General Comments 0
You need to be logged in to leave comments. Login now