Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

hgemail: send intro email for one patch if supported and subject given

Changeset fac44ce3977a

Parent 5363626be64b

by Simon Heimberg

Changes to one file · Browse files at fac44ce3977a Showing diff from parent 5363626be64b Diff from another changeset...

Change 1 of 3 Show Entire File hggtk/​hgemail.py Stacked
 
159
160
161
162
163
164
165
166
167
 
168
169
170
 
203
204
205
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
206
207
208
 
291
292
293
 
 
294
295
296
 
159
160
161
 
 
 
 
 
 
162
163
164
165
 
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
 
302
303
304
305
306
307
308
309
@@ -159,12 +159,7 @@
  eventbox = gtk.EventBox()   eventbox.add(vbox)   frame.add(eventbox) - self.tooltips.set_tip(eventbox, - _('Patch series description is sent in initial summary' - ' email with [PATCH 0 of N] subject. It should describe' - ' the effects of the entire patch series. When emailing' - ' a bundle, these fields make up the message subject and body.' - ' The description field is unused when sending a single patch')) + self._eventbox = eventbox   mainvbox.pack_start(frame, True, True, 4)     self.connect('map_event', self._on_window_map_event) @@ -203,6 +198,22 @@
  self._ccbox.child.set_text(fromutf(repo.ui.config('email', 'cc', '')))   self._frombox.child.set_text(fromutf(repo.ui.config('email', 'from', '')))   self._subjbox.child.set_text(fromutf(repo.ui.config('email', 'subject', ''))) + self._intro = False + for arg in extensions.find('patchbomb').cmdtable['email'][1]: + if arg[1] == 'intro': + self._intro = True + break + if self._intro: + addtip = '' + else: + addtip = ' ' + _('The description field is unused ' + 'when sending a single patch.') + self.tooltips.set_tip(self._eventbox, + _('Patch series description is sent in initial summary' + ' email with [PATCH 0 of N] subject. It should describe' + ' the effects of the entire patch series. When emailing' + ' a bundle, these fields make up the message subject and body.') + + addtip)   fill_history(history, self._tolist, 'email.to')   fill_history(history, self._cclist, 'email.cc')   fill_history(history, self._fromlist, 'email.from') @@ -291,6 +302,8 @@
  cmdline.insert(2, '--test')   if subjtext:   cmdline += ['--subject', subjtext] + if self._intro: + cmdline += ['--intro']   if self._bundle.get_active():   cmdline += ['--bundle']   if '--outgoing' in self.revargs: